From: seungho Date: Mon, 3 May 2021 09:22:29 +0000 (+0900) Subject: Do not use GL_MAJOR_VERSION and GL_MINOR_VERSION at the OpenGL es 2.0 device. X-Git-Tag: dali_2.0.25~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F18%2F257818%2F2;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Do not use GL_MAJOR_VERSION and GL_MINOR_VERSION at the OpenGL es 2.0 device. Change-Id: Ie3c25e711c2e4de8d7c5d7f4bcd08e2c0182a573 Signed-off-by: seungho --- diff --git a/dali/internal/graphics/gles/gl-implementation.h b/dali/internal/graphics/gles/gl-implementation.h index bcc8c86..4f3b8dc 100644 --- a/dali/internal/graphics/gles/gl-implementation.h +++ b/dali/internal/graphics/gles/gl-implementation.h @@ -96,10 +96,14 @@ public: { glGetIntegerv(GL_MAX_TEXTURE_SIZE, &mMaxTextureSize); - GLint majorVersion, minorVersion; - glGetIntegerv(GL_MAJOR_VERSION, &majorVersion); - glGetIntegerv(GL_MINOR_VERSION, &minorVersion); - mGlesVersion = majorVersion * 10 + minorVersion; + // Only change gles version for the device that support above gles 3.0. + if(mGlesVersion >= INITIAL_GLES_VERSION) + { + GLint majorVersion, minorVersion; + glGetIntegerv(GL_MAJOR_VERSION, &majorVersion); + glGetIntegerv(GL_MINOR_VERSION, &minorVersion); + mGlesVersion = majorVersion * 10 + minorVersion; + } if(mGlesVersion >= GLES_VERSION_SUPPORT_BLEND_EQUATION_ADVANCED) {