mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
[cogl-material] Restore the GL_TEXTURE_ENV_MODE after material_rectangle
The rest of Cogl expects the texture mode to be GL_MODULATE so it needs to be restored after calling cogl_material_rectangle. Otherwise cogl_texture_rectangle will fail to blend with the Cogl color properly and all of the labels will be black.
This commit is contained in:
parent
cd71b91440
commit
b6470ab900
@ -2595,6 +2595,10 @@ cogl_material_rectangle (CoglFixed x1,
|
|||||||
GE (glDisable (GL_TEXTURE_2D));
|
GE (glDisable (GL_TEXTURE_2D));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* The rest of Cogl expects the texture mode to be GL_MODULATE so we
|
||||||
|
need to restore that */
|
||||||
|
GE( glTexEnvi (GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE) );
|
||||||
|
|
||||||
/* XXX: a bit over precautious. For one we don't support lighting yet
|
/* XXX: a bit over precautious. For one we don't support lighting yet
|
||||||
* so there's no real need to reset the material properties. */
|
* so there's no real need to reset the material properties. */
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
Reference in New Issue
Block a user