gl4: fix glGetInteger of GL_SAMPLER_BINDING
GL_SAMPLER_BINDING returns a single value. On AMD drivers, using the indexed version of glGetInteger to get that value causes a GL_INVALID_ENUM error. Use the non-indexed version.
This commit is contained in:
parent
232c35b89e
commit
48ed0cb903
|
@ -180,7 +180,7 @@ struct SavedState {
|
|||
glGetIntegerv(GL_PROGRAM_PIPELINE_BINDING, &program_pipeline);
|
||||
glGetIntegerv(GL_VERTEX_ARRAY_BINDING, &vertex_array);
|
||||
glGetIntegerv(GL_TEXTURE_BINDING_2D, &texture_0);
|
||||
glGetIntegeri_v(GL_SAMPLER_BINDING, 0, &sampler_0);
|
||||
glGetIntegerv(GL_SAMPLER_BINDING, &sampler_0);
|
||||
}
|
||||
|
||||
void Restore() {
|
||||
|
|
Loading…
Reference in New Issue