From: "Sung W. Park" <sungwoo@gmail.com>

(part of the evas-gl work)

the patch basically checks to see if the current context is evas' gl context
and if it is, it'll call evas_gl_common_context_flush().  I think this
is the proper



SVN revision: 58786
This commit is contained in:
Sung W. Park 2011-04-21 09:23:42 +00:00 committed by Carsten Haitzler
parent a570e2580c
commit db20d2aeab
1 changed files with 18 additions and 0 deletions

View File

@ -2457,6 +2457,24 @@ eng_gl_make_current(void *data, void *surface, void *context)
sfc = (Render_Engine_GL_Surface*)surface;
ctx = (Render_Engine_GL_Context*)context;
if (re->win)
{
#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
if ((eglGetCurrentContext() == re->win->egl_context[0]) ||
(eglGetCurrentSurface(EGL_READ) == re->win->egl_surface[0]) ||
(eglGetCurrentSurface(EGL_DRAW) == re->win->egl_surface[0]))
{
evas_gl_common_context_use(re->win->gl_context);
evas_gl_common_context_flush(re->win->gl_context);
}
#else
if (glXGetCurrentContext() == re->win->context)
{
evas_gl_common_context_use(re->win->gl_context);
evas_gl_common_context_flush(re->win->gl_context);
}
#endif
}
if ((!sfc) || (!ctx))
{