gl_generic: Add null checks in some cache functions
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 3 Mar 2017 18:45:58 +0000 (12:45 -0600)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 3 Mar 2017 19:30:00 +0000 (13:30 -0600)
commit49e7932c8670a2977fe80860a9112abab16e9237
tree9bde53d32d4f10daef7a5b1c9334aa8496cb7425
parente263cbf9d0b867b69256673337cfe015fc2c238b
gl_generic: Add null checks in some cache functions

When wayland session recovery happens, we can end up down this path
with no gl context when elm reprocesses its config file.

That callback fires long before we've re-set up our wayland connection
so we can't possibly have a valid gl context yet.

Prevent that from crashing.
src/modules/evas/engines/gl_generic/evas_engine.c