forked from enlightenment/efl
_evas_gl_common_viewport_set segv fix: ROUND 2!
SVN revision: 57561
This commit is contained in:
parent
ccfe91cc58
commit
63638f7393
|
@ -135,3 +135,7 @@
|
||||||
2011-02-27 Vincent Torri
|
2011-02-27 Vincent Torri
|
||||||
|
|
||||||
* Fixed static linking of the bmp, wbmp and tga loaders
|
* 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
|
||||||
|
|
|
@ -292,6 +292,7 @@ _evas_gl_common_viewport_set(Evas_GL_Context *gc)
|
||||||
GLfloat proj[16];
|
GLfloat proj[16];
|
||||||
int w = 1, h = 1, m = 1, rot = 1, foc = 0;
|
int w = 1, h = 1, m = 1, rot = 1, foc = 0;
|
||||||
|
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN(gc);
|
||||||
foc = gc->foc;
|
foc = gc->foc;
|
||||||
// surface in pipe 0 will be the same as all pipes
|
// surface in pipe 0 will be the same as all pipes
|
||||||
if ((gc->pipe[0].shader.surface == gc->def_surface) ||
|
if ((gc->pipe[0].shader.surface == gc->def_surface) ||
|
||||||
|
|
Loading…
Reference in New Issue