mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 01:36:10 -05:00
[glx-texture-pixmap] Don't enable the texture target when binding the texture
There's no need to enable the texture target unless it is going to be used for rendering. Enabling it directly with glEnable calls confuses Cogl's state caching. This is a replacement for the patch in bug 1483 which was reverted.
This commit is contained in:
parent
c4dcbb6bdb
commit
0a48a52ba1
@ -134,8 +134,6 @@ texture_bind (ClutterGLXTexturePixmap *tex)
|
||||
if (!cogl_texture_get_gl_texture (cogl_tex, &handle, &target))
|
||||
return FALSE;
|
||||
|
||||
glEnable(target);
|
||||
|
||||
/* FIXME: fire off an error here? */
|
||||
glBindTexture (target, handle);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user