[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 b0df99fbad
commit fa996734cf

View File

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