diff --git a/rpcs3/Emu/RSX/GL/glutils/ex.cpp b/rpcs3/Emu/RSX/GL/glutils/ex.cpp index 867930724d..d93ea508e8 100644 --- a/rpcs3/Emu/RSX/GL/glutils/ex.cpp +++ b/rpcs3/Emu/RSX/GL/glutils/ex.cpp @@ -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(&restore)); glBindBuffer(target, buffer); glBufferStorage(target, size, data, flags);