X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fgraphics%2Fgles%2Fegl-implementation.cpp;h=91d4fab593e5c6aeeac9d19a3a7c35bcb4fa805a;hb=b1fd30822f120674af6ae38b0a461f480744d1ef;hp=7147bfe7ceaad2128daf30e5b4a188f0d47aacdd;hpb=3be8f9c4ecf53b680e158acdcb4a95af1a9c0878;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/graphics/gles/egl-implementation.cpp b/dali/internal/graphics/gles/egl-implementation.cpp index 7147bfe..91d4fab 100755 --- a/dali/internal/graphics/gles/egl-implementation.cpp +++ b/dali/internal/graphics/gles/egl-implementation.cpp @@ -400,8 +400,8 @@ bool EglImplementation::ChooseConfig( bool isWindowType, ColorDepth depth ) } #endif // DALI_PROFILE_UBUNTU configAttribs.PushBack( EGL_NONE ); - if ( ( eglChooseConfig( mEglDisplay, &(configAttribs[0]), &mEglConfig, 1, &numConfigs ) != EGL_TRUE ) || - ( numConfigs != 1 ) ) + + if ( eglChooseConfig( mEglDisplay, &(configAttribs[0]), &mEglConfig, 1, &numConfigs ) != EGL_TRUE ) { if( mGlesVersion >= 30 ) { @@ -410,13 +410,6 @@ bool EglImplementation::ChooseConfig( bool isWindowType, ColorDepth depth ) return false; } - if ( numConfigs != 1 ) - { - DALI_LOG_ERROR("No configurations found.\n"); - - TEST_EGL_ERROR("eglChooseConfig"); - } - EGLint error = eglGetError(); switch (error) { @@ -467,6 +460,13 @@ bool EglImplementation::ChooseConfig( bool isWindowType, ColorDepth depth ) } mContextAttribs.PushBack( EGL_NONE ); + if ( numConfigs != 1 ) + { + DALI_LOG_ERROR("No configurations found.\n"); + + TEST_EGL_ERROR("eglChooseConfig"); + } + return true; }