mirror of
https://github.com/brl/mutter.git
synced 2025-07-06 10:59:51 +00:00
Improves tfp performance on Nvidia
Some drivers (e.g. Nvidia) get upset if you try to create multiple glx pixmaps for the same server side pixmap object, even though you might have unique client side names, we now avoid hitting this problem by destroying the current glx pixmap early within clutter_glx_texture_pixmap_create_glx_pixmap.
This commit is contained in:
@ -696,6 +696,13 @@ clutter_glx_texture_pixmap_create_glx_pixmap (ClutterGLXTexturePixmap *texture)
|
|||||||
|
|
||||||
attribs[i++] = None;
|
attribs[i++] = None;
|
||||||
|
|
||||||
|
/* Note: some drivers (e.g. Nvidia) get upset if you effectivly create a glx
|
||||||
|
* pixmap for the same server side object, even though you might have unique
|
||||||
|
* client side names, we currently avoid hitting this problem by destroying
|
||||||
|
* the current glx pixmap first */
|
||||||
|
if (priv->glx_pixmap)
|
||||||
|
clutter_glx_texture_pixmap_free_glx_pixmap (texture);
|
||||||
|
|
||||||
clutter_x11_trap_x_errors ();
|
clutter_x11_trap_x_errors ();
|
||||||
glx_pixmap = glXCreatePixmap (dpy,
|
glx_pixmap = glXCreatePixmap (dpy,
|
||||||
*fbconfig,
|
*fbconfig,
|
||||||
|
Reference in New Issue
Block a user