evas - gl x11 - fix glx texture from pixmap target rectangle mode check
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 13 Feb 2014 10:35:17 +0000 (19:35 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 13 Feb 2014 10:35:17 +0000 (19:35 +0900)
even though we don't support rectangle bits in texture targets for
texture-from-pixmap the code checked and complained - problem is it
checked the wrong thing. fixes CID 1135267

src/modules/evas/engines/gl_x11/evas_engine.c

index 3212197ea09a2a47575e554932330b00b80f9bb3..d4185cd136d4f88b13aceb4da5b97261af2a91a5 100644 (file)
@@ -2466,7 +2466,7 @@ eng_image_native_set(void *data, void *image, void *native)
                       eina_hash_add(re->win->gl_context->shared->native_pm_hash, &pmid, im);
                       if ((tex_target & GLX_TEXTURE_2D_BIT_EXT))
                         target = GLX_TEXTURE_2D_EXT;
-                      else if ((target & GLX_TEXTURE_RECTANGLE_BIT_EXT))
+                      else if ((tex_target & GLX_TEXTURE_RECTANGLE_BIT_EXT))
                         {
                            ERR("rect!!! (not handled)");
                            target = GLX_TEXTURE_RECTANGLE_EXT;