# HG changeset patch # User Faisal Memon # Date 1287743363 -3600 # Node ID 032a79db4ef1c48c17174183b057ee113d59787d # Parent dfe4593146ee958d0ab2fbfbdc3e790603d8a65f Revert fix for eglMakeCurrent since it was the deinit path was is ok for EGL_NO_*. Add extra debugging diff -r dfe4593146ee -r 032a79db4ef1 guestrendering/guestegl/src/guestegl.cpp --- a/guestrendering/guestegl/src/guestegl.cpp Fri Oct 22 10:54:17 2010 +0100 +++ b/guestrendering/guestegl/src/guestegl.cpp Fri Oct 22 11:29:23 2010 +0100 @@ -1118,10 +1118,10 @@ EGL_TRACE("CGuestEGL::eglMakeCurrent call host"); RemoteFunctionCallData rfcdata; EglRFC eglApiData( rfcdata ); eglApiData.Init( EglRFC::EeglMakeCurrent ); - eglApiData.AppendEGLDisplay(aDisplay); - eglApiData.AppendEGLSurface(aDraw); - eglApiData.AppendEGLSurface(aRead); - eglApiData.AppendEGLContext(aContext); + eglApiData.AppendEGLDisplay(EGL_NO_DISPLAY); + eglApiData.AppendEGLSurface(EGL_NO_SURFACE); + eglApiData.AppendEGLSurface(EGL_NO_SURFACE); + eglApiData.AppendEGLContext(EGL_NO_CONTEXT); EGLBoolean ret = aThreadState.ExecEglBooleanCmd(eglApiData); EGL_TRACE("CGuestEGL::eglMakeCurrent end success=%d", ret); @@ -1154,6 +1154,7 @@ { EGL_TRACE("CGuestEGL::eglMakeCurrent check surface %d", surfaces[i] ); surfaceInfo[i] = EglInternalFunction_GetPlatformSurface( aDisplay, surfaces[i] ); + EGL_TRACE("CGuestEGL::eglMakeCurrent surfaces[%d] is %x", i, surfaces[i]); //EGL_CHECK_ERROR( surfaceInfo, EGL_BAD_SURFACE , EGL_FALSE ); if ( surfaceInfo[i] ) { @@ -1216,7 +1217,7 @@ eglApiData.AppendEGLContext(aContext); EGLBoolean ret = aThreadState.ExecEglBooleanCmd(eglApiData); - EGL_TRACE("CGuestEGL::eglMakeCurrent end success=%d", ret); + EGL_TRACE("CGuestEGL::eglMakeCurrent last end success=%d", ret); return (EGLBoolean)ret; } }