gl: Fix linux build

This commit is contained in:
kd-11 2026-06-14 21:19:06 +03:00 committed by kd-11
parent ff68a1ea09
commit 00c57be1ed

View File

@ -5,8 +5,8 @@ namespace gl::ex
{
void glNamedBufferStorageEX(GLuint buffer, GLenum target, GLsizeiptr size, const void* data, GLbitfield flags)
{
GLint restore = GL_NONE;
glGetIntegerv(target, &restore);
GLuint restore = GL_NONE;
glGetIntegerv(target, utils::bless<GLint>(&restore));
glBindBuffer(target, buffer);
glBufferStorage(target, size, data, flags);