jpeg pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=0ee951fc2129b8c8e1a0d5fb0c0d83084b45e5b4
commit 0ee951fc2129b8c8e1a0d5fb0c0d83084b45e5b4 Author: Jean-Philippe Andre <[email protected]> Date: Mon Sep 1 21:12:29 2014 +0900 Evas GL: Add safety checks for missing functions --- src/lib/evas/canvas/evas_gl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/lib/evas/canvas/evas_gl.c b/src/lib/evas/canvas/evas_gl.c index 4a75896..78d270c 100644 --- a/src/lib/evas/canvas/evas_gl.c +++ b/src/lib/evas/canvas/evas_gl.c @@ -377,6 +377,13 @@ evas_gl_current_context_get(Evas_GL *evas_gl) return NULL; MAGIC_CHECK_END(); + if (!evas_gl->evas->engine.func->gl_current_context_get) + { + CRI("Can not get current context with this engine: %s", + evas_gl->evas->engine.module->definition->name); + return NULL; + } + internal_ctx = evas_gl->evas->engine.func->gl_current_context_get(evas_gl->evas->engine.data.output); if (!internal_ctx) return NULL; @@ -408,6 +415,13 @@ evas_gl_current_surface_get(Evas_GL *evas_gl) return NULL; MAGIC_CHECK_END(); + if (!evas_gl->evas->engine.func->gl_current_surface_get) + { + CRI("Can not get current surface with this engine: %s", + evas_gl->evas->engine.module->definition->name); + return NULL; + } + internal_sfc = evas_gl->evas->engine.func->gl_current_surface_get(evas_gl->evas->engine.data.output); if (!internal_sfc) return NULL; --
