Update EGL surface creation to initialise the surface stride. This gets the EBT test program to finally draw it's red line! bug235_bringup_0
authorJon Medhurst
Fri, 22 Oct 2010 16:32:41 +0100
branchbug235_bringup_0
changeset 66 07904b9e3bd7
parent 65 3e31350c2490
child 72 fd0a704154b9
Update EGL surface creation to initialise the surface stride. This gets the EBT test program to finally draw it's red line!
guestrendering/guestegl/src/guestegl.cpp
--- a/guestrendering/guestegl/src/guestegl.cpp	Fri Oct 22 14:10:40 2010 +0100
+++ b/guestrendering/guestegl/src/guestegl.cpp	Fri Oct 22 16:32:41 2010 +0100
@@ -286,6 +286,8 @@
 				surfaceInfo->iConfigId = aConfig;
 				surfaceInfo->iSurfaceManager.Open();
 				surfaceInfo->iSurfaceManager.CreateSurface(buf, surfaceInfo->iSurfaceId);
+				surfaceInfo->iStride = attributes.iStride;
+
 				TInt err =  surfaceInfo->iSurfaceManager.MapSurface(surfaceInfo->iSurfaceId, surfaceInfo->iChunk);
 				EGL_TRACE("CGuestEGL::eglCreateWindowSurface surface manager returned chunk %x and ret val %d", surfaceInfo->iChunk, err);
 				RemoteFunctionCallData rfcdata;