}
#endif // DALI_PROFILE_UBUNTU
configAttribs.PushBack( EGL_NONE );
+
+ // Ensure number of configs is set to 1 as on some drivers,
+ // eglChooseConfig succeeds but does not actually create a proper configuration.
if ( ( eglChooseConfig( mEglDisplay, &(configAttribs[0]), &mEglConfig, 1, &numConfigs ) != EGL_TRUE ) ||
( numConfigs != 1 ) )
{