Evas GL: Fix rotation angle get to check for DR first

direct_enabled() is not visible from the engines... but it is from
evas_gl_core which calls the engine.
This commit is contained in:
Jean-Philippe Andre 2014-09-04 11:41:27 +09:00
parent f351aad8bf
commit 90b07fc42a
2 changed files with 2 additions and 5 deletions

View File

@ -1186,6 +1186,7 @@ static int
eng_gl_rotation_angle_get(void *data)
{
if (!evgl_engine->funcs->rotation_angle_get) return 0;
if (!_evgl_direct_enabled()) return 0;
return evgl_engine->funcs->rotation_angle_get(data);
}

View File

@ -598,11 +598,7 @@ evgl_eng_rotation_angle_get(void *data)
}
if ((eng_get_ob(re)) && (eng_get_ob(re)->gl_context))
{
if (_evgl_direct_enabled())
return eng_get_ob(re)->gl_context->rot;
return 0;
}
return eng_get_ob(re)->gl_context->rot;
else
{
ERR("Unable to retrieve rotation angle.");