Revert fix for eglMakeCurrent since it was the deinit path was is ok for EGL_NO_*. Add extra debugging bug235_bringup_0
authorFaisal Memon <faisal.memon@nokia.com>
Fri, 22 Oct 2010 11:29:23 +0100
branchbug235_bringup_0
changeset 61 032a79db4ef1
parent 60 dfe4593146ee
child 62 5f3491b7f643
child 63 13f031032ff1
Revert fix for eglMakeCurrent since it was the deinit path was is ok for EGL_NO_*. Add extra debugging
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;
 		}
 	}