From: Sunghyun kim Date: Tue, 4 Jun 2019 09:09:22 +0000 (+0900) Subject: Revert "[Tizen]Fallback to GLES 2.0 when num_config is 0" X-Git-Tag: accepted/tizen/unified/20190605.215619~3 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git;a=commitdiff_plain;h=b1fd30822f120674af6ae38b0a461f480744d1ef Revert "[Tizen]Fallback to GLES 2.0 when num_config is 0" This reverts commit 84ed76c8ec106401cad58cb870574d8101cd9502. Change-Id: Id01eaebc9ad90f71d81460f5f15c9de02835f423 --- 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; }