From: discomfitor Date: Tue, 8 Mar 2011 01:00:21 +0000 (+0000) Subject: _evas_gl_common_viewport_set segv fix: ROUND 2! X-Git-Tag: 2.0_alpha~240^2~972 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=958bae8c8eafc8d9fec8beb2964924e70c1e83f0;p=framework%2Fuifw%2Fevas.git _evas_gl_common_viewport_set segv fix: ROUND 2! git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@57561 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/ChangeLog b/ChangeLog index 3e796e7..0ddbb3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -135,3 +135,7 @@ 2011-02-27 Vincent Torri * Fixed static linking of the bmp, wbmp and tga loaders + +2011-03-07 Mike Blumenkrantz + + * Fix segv when trying to set gl viewpoint with NULL ctx diff --git a/src/modules/engines/gl_common/evas_gl_context.c b/src/modules/engines/gl_common/evas_gl_context.c index 67af362..5006c76 100644 --- a/src/modules/engines/gl_common/evas_gl_context.c +++ b/src/modules/engines/gl_common/evas_gl_context.c @@ -292,6 +292,7 @@ _evas_gl_common_viewport_set(Evas_GL_Context *gc) GLfloat proj[16]; int w = 1, h = 1, m = 1, rot = 1, foc = 0; + EINA_SAFETY_ON_NULL_RETURN(gc); foc = gc->foc; // surface in pipe 0 will be the same as all pipes if ((gc->pipe[0].shader.surface == gc->def_surface) ||