forked from enlightenment/efl
evas/gl: Do not reassign the surface during make current.
There was already a surface created by _evgl_tls_resource_create(). If we assign a new one here, the wrong one will be destroyed at _evgl_tls_resource_destroy(), and later the GL window will be destroyed before the surface, causing invalid access errors. This fixes https://phab.enlightenment.org/T326
This commit is contained in:
parent
bda3ceb632
commit
2e2cac43da
|
@ -123,10 +123,6 @@ _internal_resource_make_current(void *eng_data, EVGL_Context *ctx)
|
|||
else
|
||||
context = (void*)rsc->context;
|
||||
|
||||
// Update in case they've changed
|
||||
if (rsc->id == evgl_engine->main_tid)
|
||||
rsc->surface = evgl_engine->funcs->evas_surface_get(eng_data);
|
||||
|
||||
surface = (void*)rsc->surface;
|
||||
|
||||
// Do the make current
|
||||
|
|
Loading…
Reference in New Issue