forked from enlightenment/efl
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:
parent
f351aad8bf
commit
90b07fc42a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue