forked from enlightenment/efl
Evas GL: reset current surface to NULL when it is destroyed
Summary: Hopefully this will fix some of the multiple windows issues for elm glview but not all. @fix Test Plan: elementary glview tests Reviewers: cedric, jpeg Reviewed By: jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2317
This commit is contained in:
parent
364dcab234
commit
bbc4222eaf
|
@ -1961,6 +1961,9 @@ evgl_surface_destroy(void *eng_data, EVGL_Surface *sfc)
|
|||
if ((dbg = evgl_engine->api_debug_mode))
|
||||
DBG("Destroying surface sfc %p (eng %p)", sfc, eng_data);
|
||||
|
||||
if (sfc->current_ctx && sfc->current_ctx->current_sfc == sfc)
|
||||
sfc->current_ctx->current_sfc = NULL;
|
||||
|
||||
if ((rsc->current_ctx) && (rsc->current_ctx->current_sfc == sfc) )
|
||||
{
|
||||
if (evgl_engine->api_debug_mode)
|
||||
|
|
Loading…
Reference in New Issue