evas-gl_cocoa: fix crashes at engine startup
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>
Mon, 22 Aug 2016 17:52:49 +0000 (19:52 +0200)
committerJean Guyomarc'h <jean@guyomarch.bzh>
Mon, 22 Aug 2016 17:56:08 +0000 (19:56 +0200)
commit84679d3173f67378af35fb881cc9d9e51a5dc977
tree5b0cc70147432c3f30ee15fc2fc2ee143ba1a66d
parenta71b688b1045f285688c612271c97faf412731e8
evas-gl_cocoa: fix crashes at engine startup

Recently, the gl_cocoa engine started to crash at
startup. glGetIntegerv() in gl_common was called
without any gl context, and therefore segfaulted.

We now make sure it is called after a gl context
has been created and used.

Thanks jpeg for troubleshooting.

Fixes T4402
src/modules/evas/engines/gl_cocoa/evas_engine.c
src/modules/evas/engines/gl_cocoa/evas_engine.h
src/modules/evas/engines/gl_cocoa/evas_gl_cocoa_main.m