Commit aadf5117 by Geoff Lang

Fix incorrect extension check.

BUG=angleproject:884 Change-Id: Ia201ac60e337fd45ef72cc254bcb36d333418613 Reviewed-on: https://chromium-review.googlesource.com/289333Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent ac319fcc
...@@ -302,7 +302,7 @@ static GLenum GetNativeInternalFormat(const FunctionsGL *functions, ...@@ -302,7 +302,7 @@ static GLenum GetNativeInternalFormat(const FunctionsGL *functions,
} }
if (sizedInternalFormat == GL_RGB565 && !functions->isAtLeastGL(gl::Version(4, 1)) && if (sizedInternalFormat == GL_RGB565 && !functions->isAtLeastGL(gl::Version(4, 1)) &&
functions->hasGLExtension("GL_ARB_ES2_compatibility")) !functions->hasGLExtension("GL_ARB_ES2_compatibility"))
{ {
// GL_RGB565 is required for basic ES2 functionality but was not added to desktop GL // GL_RGB565 is required for basic ES2 functionality but was not added to desktop GL
// until 4.1. // until 4.1.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment