mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
[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:
parent
74cd43e01c
commit
e6a7a70d54
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user