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
This commit is contained in:
Sung Park 2012-01-25 05:08:23 +00:00
parent 73b1d45d15
commit 14a94f1a8f
1 changed files with 1 additions and 1 deletions

View File

@ -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;