mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
1e6e41190b
Setting the pixmap for an unrealized ClutterGLXTexturePixmap should not cause it to be realized, and certainly shouldn't cause the the REALIZED flag to be set without using clutter_actor_realize(). This patch uses the simple approach that; - pixmap changes on an unrealized ClutterGLXTexturePixmap are ignored - when the ClutterGLXTexturePixmap is realized, we then create the GLXPixmap and the corresponding texture. The call to clutter_glx_texture_pixmap_update_area() is moved from create_cogl_texture() to clutter_glx_texture_pixmap_create_glx_pixmap() since create_cogl_texture() is only called from one place, and updating the area is really something we do *after* creating the texture, not part of creating the texture. clutter_glx_texture_pixmap_create_glx_pixmap() is reorganized a bit to avoid debug-logging confusingly if it's called before a pixmap has been set, and for readability. http://bugzilla.openedhand.com/show_bug.cgi?id=1635 Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com> |
||
---|---|---|
.. | ||
clutter-backend-glx.c | ||
clutter-backend-glx.h | ||
clutter-glx-texture-pixmap.c | ||
clutter-glx-texture-pixmap.h | ||
clutter-glx.h | ||
clutter-stage-glx.c | ||
clutter-stage-glx.h | ||
Makefile.am |