[Title] Fixed the makecurrent logic between different display.
authorHaegeun Park <haegeun.park@samsung.com>
Mon, 13 May 2013 08:23:36 +0000 (01:23 -0700)
committerHaegeun Park <haegeun.park@samsung.com>
Mon, 13 May 2013 08:30:31 +0000 (01:30 -0700)
[Issue#]
[Problem]
[Cause] Black screen occues when launching the toon-shading testcases in browser.
[Solution]

src/modules/fastpath/coregl_fastpath_egl.c

index b72eaea..49b6b88 100644 (file)
@@ -1121,11 +1121,13 @@ fastpath_eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLCon
        AST(gctx->cstate != NULL);
 
        // If binded real context changed, do a make current
-       if (tstate->cstate == NULL || tstate->cstate->rctx != gctx->cstate->rctx)
+       if (tstate->cstate == NULL || tstate->cstate != gctx->cstate)
                need_mc = EGL_TRUE;
 
        if (need_mc == EGL_TRUE)
        {
+               AST(dpy == gctx->cstate->rdpy);
+
                // BB : full makecurrent
                if (_orig_fastpath_eglMakeCurrent(dpy, draw, read, gctx->cstate->rctx) != EGL_TRUE)
                {