evas: Avoid crash when there's no GL implementation

Signed-off-by: Mike McCormack <mikem@ring3k.org>

SVN revision: 66708
This commit is contained in:
Mike McCormack 2011-12-31 23:07:22 +00:00
parent 0ef4f2aeeb
commit 2489fd44bf
1 changed files with 6 additions and 0 deletions

View File

@ -135,6 +135,12 @@ evas_gl_context_create(Evas_GL *evas_gl, Evas_GL_Context *share_ctx)
return NULL;
}
if (!evas_gl->evas->engine.func->gl_context_create)
{
ERR("GL engine not available\n");
return NULL;
}
// Call engine->gl_create_context
if (share_ctx)
{