diff -r fed1595b188e -r 5e30ef2e26cb egl/egltest/src/egltest_general.cpp --- a/egl/egltest/src/egltest_general.cpp Sat Feb 20 00:07:50 2010 +0200 +++ b/egl/egltest/src/egltest_general.cpp Fri Mar 12 15:50:05 2010 +0200 @@ -107,9 +107,8 @@ INFO_PRINTF1(_L("Dumping OpenVG strings")); // OpenVG needs a current VG context before it will allow the call to vgGetString - TUidPixelFormat pixelFormat = EglTestConversion::VgFormatToSgPixelFormat(KDefaultSurfaceFormat); - TSgImageInfoOpenVgTarget imageInfo = TSgImageInfoOpenVgTarget(pixelFormat, KPixmapSize); - eglSess->CreatePixmapSurfaceAndMakeCurrentAndMatchL(imageInfo,CTestEglSession::EResourceCloseSgImageEarly, EGL_OPENVG_API); + EGLConfig currentConfig = eglSess->GetConfigExactMatchL(EPBufferAttribsColor64K); + eglSess->CreatePbufferSurfaceAndMakeCurrentL(currentConfig, KPixmapSize, EGL_OPENVG_API); TPtrC8 ptrVgVendor((const TText8 *)vgGetString(VG_VENDOR)); DumpString(_L("VG_VENDOR"), ptrVgVendor); @@ -133,9 +132,8 @@ INFO_PRINTF1(_L("Dumping OpenGLES strings")); // OpenGLES needs a current GLES context before it will allow the call to glGetString - TUidPixelFormat pixelFormat = EglTestConversion::VgFormatToSgPixelFormat(KDefaultSurfaceFormat); - TSgImageInfoOpenVgTarget imageInfo = TSgImageInfoOpenVgTarget(pixelFormat, KPixmapSize); - eglSess->CreatePixmapSurfaceAndMakeCurrentAndMatchL(imageInfo,CTestEglSession::EResourceCloseSgImageEarly, EGL_OPENGL_ES_API); + EGLConfig currentConfig = eglSess->GetConfigExactMatchL(EPBufferAttribsColor64K); + eglSess->CreatePbufferSurfaceAndMakeCurrentL(currentConfig, KPixmapSize, EGL_OPENGL_ES_API); TPtrC8 ptrGlesVendor((const TText8 *)glGetString(GL_VENDOR)); DumpString(_L("GL_VENDOR"), ptrGlesVendor); @@ -201,7 +199,7 @@ INFO_PRINTF1(_L("CEglTest_QueryString_Extensions::doTestStepL")); TInt numExtensions=0; - if (!GetIntFromConfig(KSectionQueryExtensions, KKeyCountExtensionsEGL, numExtensions)) + if (!GetIntFromConfig(ConfigSection(), KKeyCountExtensionsEGL, numExtensions)) { ERR_PRINTF2(_L("Cannot find key '%S' in INI file"), &KKeyCountExtensionsEGL); User::Leave(KErrArgument); @@ -213,7 +211,7 @@ for(TInt i=0; i