antognolli pushed a commit to branch master.
commit 2e2cac43da9584ecbd04ece1e6eb32cf9fdf3786
Author: Rafael Antognolli <[email protected]>
Date: Sat Aug 31 14:23:44 2013 -0300
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
---
src/modules/evas/engines/gl_common/evas_gl_core.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/modules/evas/engines/gl_common/evas_gl_core.c
b/src/modules/evas/engines/gl_common/evas_gl_core.c
index c8d50e6..8476541 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_core.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_core.c
@@ -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
--
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk