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:
sephiroth99 2015-06-04 23:32:37 -04:00
parent 232c35b89e
commit 48ed0cb903
1 changed files with 1 additions and 1 deletions

View File

@ -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() {