Commit 7d4602fc by Geoff Lang Committed by Commit Bot

Allow ReadPixels with GL_FLOAT type and EXT_color_buffer_half_float.

BUG=angleproject:2148 Change-Id: If3fa4a42a7343ed133f85be1a4d9d0fa48b427cd Reviewed-on: https://chromium-review.googlesource.com/665158Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 715e7f1a
...@@ -176,7 +176,8 @@ bool ValidReadPixelsTypeEnum(ValidationContext *context, GLenum type) ...@@ -176,7 +176,8 @@ bool ValidReadPixelsTypeEnum(ValidationContext *context, GLenum type)
return context->getClientVersion() >= ES_3_0; return context->getClientVersion() >= ES_3_0;
case GL_FLOAT: case GL_FLOAT:
return context->getClientVersion() >= ES_3_0 || context->getExtensions().textureFloat; return context->getClientVersion() >= ES_3_0 || context->getExtensions().textureFloat ||
context->getExtensions().colorBufferHalfFloat;
case GL_HALF_FLOAT: case GL_HALF_FLOAT:
return context->getClientVersion() >= ES_3_0 || return context->getClientVersion() >= ES_3_0 ||
......
...@@ -37,11 +37,11 @@ void CheckBlendFunctions(GLenum src, GLenum dst) ...@@ -37,11 +37,11 @@ void CheckBlendFunctions(GLenum src, GLenum dst)
constexpr const char *FloatingPointTextureExtensions[] = { constexpr const char *FloatingPointTextureExtensions[] = {
"", "",
"GL_EXT_texture_storage", "GL_EXT_texture_storage",
"GL_OES_texture_float",
"GL_OES_texture_float_linear",
"GL_OES_texture_half_float", "GL_OES_texture_half_float",
"GL_OES_texture_half_float_linear", "GL_OES_texture_half_float_linear",
"GL_EXT_color_buffer_half_float", "GL_EXT_color_buffer_half_float",
"GL_OES_texture_float",
"GL_OES_texture_float_linear",
"GL_EXT_color_buffer_float", "GL_EXT_color_buffer_float",
"GL_CHROMIUM_color_buffer_float_rgba", "GL_CHROMIUM_color_buffer_float_rgba",
"GL_CHROMIUM_color_buffer_float_rgb", "GL_CHROMIUM_color_buffer_float_rgb",
......
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