egl/sfegltest/src/eglrendering.cpp
branchbug235_bringup_0
changeset 205 c7cc034fd51d
parent 204 3f7664f3b0f4
child 210 da03feddbab7
equal deleted inserted replaced
204:3f7664f3b0f4 205:c7cc034fd51d
    19 
    19 
    20 const TInt KTimerDelay = 0;
    20 const TInt KTimerDelay = 0;
    21 
    21 
    22 
    22 
    23 /** Attributes to be passed into eglChooseConfig */
    23 /** Attributes to be passed into eglChooseConfig */
    24 const EGLint	KColorRGB565AttribList[] =
    24 const EGLint	KColorRGBA8888AttribList[] =
    25 		{
    25 		{
    26 		EGL_RED_SIZE,			5,
    26 		EGL_RED_SIZE,			8,
    27 		EGL_GREEN_SIZE,			6,
    27 		EGL_GREEN_SIZE,			8,
    28 		EGL_BLUE_SIZE,			5,
    28 		EGL_BLUE_SIZE,			8,
       
    29         EGL_ALPHA_SIZE,         8,
    29 		EGL_SURFACE_TYPE,		EGL_WINDOW_BIT,
    30 		EGL_SURFACE_TYPE,		EGL_WINDOW_BIT,
    30 		EGL_RENDERABLE_TYPE, 	EGL_OPENVG_BIT,
    31 		EGL_RENDERABLE_TYPE, 	EGL_OPENVG_BIT,
    31 		EGL_NONE
    32 		EGL_NONE
    32 		};
    33 		};
    33 
    34 
   176 
   177 
   177 	EGLint numConfigs;
   178 	EGLint numConfigs;
   178 	EGLConfig chosenConfig = 0;
   179 	EGLConfig chosenConfig = 0;
   179 
   180 
   180 	// Choose the config to use
   181 	// Choose the config to use
   181 	EGLCheckReturnError(eglChooseConfig(iDisplay, KColorRGB565AttribList, &chosenConfig, 1, &numConfigs));
   182 	EGLCheckReturnError(eglChooseConfig(iDisplay, KColorRGBA8888AttribList, &chosenConfig, 1, &numConfigs));
   182 	RDebug::Printf("CEGLRendering::ConstructL 3");
   183 	RDebug::Printf("CEGLRendering::ConstructL 3");
   183 	if (numConfigs == 0)
   184 	if (numConfigs == 0)
   184 		{
   185 		{
   185 		RDebug::Printf("No matching configs found", eglQueryString(iDisplay, EGL_EXTENSIONS));
   186 		RDebug::Printf("No matching configs found", eglQueryString(iDisplay, EGL_EXTENSIONS));
   186 		User::Leave(KErrNotSupported);
   187 		User::Leave(KErrNotSupported);