egl/egltest/src/egltest_vgimagetosurfaces.cpp
changeset 36 01a6848ebfd7
parent 0 5d03bc08d59c
child 160 969102054596
equal deleted inserted replaced
0:5d03bc08d59c 36:01a6848ebfd7
   387 		RecordTestResultL();
   387 		RecordTestResultL();
   388 		CloseTMSGraphicsStep();
   388 		CloseTMSGraphicsStep();
   389 		return TestStepResult();
   389 		return TestStepResult();
   390 		}
   390 		}
   391     User::LeaveIfError(res); // leave here if any other error was raised other than the one above.
   391     User::LeaveIfError(res); // leave here if any other error was raised other than the one above.
   392 	iEglSess->CreateWindowSurfaceAndMakeCurrentL(config, window);
   392 	iEglSess->CreateWindowSurfaceAndMakeCurrentL(config, window, windowFormat == EWindowAttribsColor16MAP);
   393 
   393 
   394 	INFO_PRINTF1(_L("Creating 1 EGLImage from the RSgImage"));
   394 	INFO_PRINTF1(_L("Creating 1 EGLImage from the RSgImage"));
   395 	EGLImageKHR imageKHR = iEglSess->eglCreateImageKhrL(iDisplay, EGL_NO_CONTEXT, EGL_NATIVE_PIXMAP_KHR, &sgImage, KEglImageAttribsPreservedTrue);
   395 	EGLImageKHR imageKHR = iEglSess->eglCreateImageKhrL(iDisplay, EGL_NO_CONTEXT, EGL_NATIVE_PIXMAP_KHR, &sgImage, KEglImageAttribsPreservedTrue);
   396 	ASSERT_EGL_TRUE(imageKHR != EGL_NO_IMAGE_KHR);
   396 	ASSERT_EGL_TRUE(imageKHR != EGL_NO_IMAGE_KHR);
   397 
   397