Fixed a logic error for Evas GL Direct rendering override

option.

It should have been OR instead of AND operator.

When the image object alpha is on "OR" the rotation angle 
is not "0", direct rendering isn't allowed.  However,  
allow direct rendering if EVAS_GL_DIRECT_OVERRIDE=1 is set. 




SVN revision: 67521
devs/devilhorns/wayland_egl
Sung Park 12 years ago
parent 73b1d45d15
commit 14a94f1a8f
  1. 2
      legacy/evas/src/modules/engines/gl_x11/evas_engine.c

@ -4123,7 +4123,7 @@ eng_gl_img_obj_set(void *data, void *image, int has_alpha)
// Normally direct rendering isn't allowed if alpha is on and
// rotation is not 0. BUT, if override is on, allow it.
if ((has_alpha) && (re->win->gl_context->rot!=0))
if ((has_alpha) || (re->win->gl_context->rot!=0))
{
if (gl_direct_override)
gl_direct_img_obj = image;

Loading…
Cancel
Save