[cogl-gles2-wrapper] Actually call glActiveTexture

cogl_wrap_glActiveTexture needs to call the GL version of
glActiveTexture otherwise the subsequent calls to glBindTexture will
all be using texture unit 0. This fixes test-cogl-multitexture.
This commit is contained in:
Neil Roberts 2009-02-20 16:37:20 +00:00
parent 74cd43e01c
commit e6a7a70d54

View File

@ -1325,6 +1325,8 @@ cogl_wrap_glActiveTexture (GLenum texture)
int texture_unit_index = texture - GL_TEXTURE0;
_COGL_GET_GLES2_WRAPPER (w, NO_RETVAL);
glActiveTexture (texture);
if (texture_unit_index < COGL_GLES2_MAX_TEXTURE_UNITS)
w->active_texture_unit = texture_unit_index;
}