Commit ce28546b by Nicolas Capens

Support GL_BGRA_EXT readback for all normalized formats.

Bug swiftshader:38 Change-Id: Ice466d96e4d71d546e5770551cc4188f8364edd0 Reviewed-on: https://swiftshader-review.googlesource.com/9029Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 492887ad
...@@ -636,6 +636,17 @@ namespace es2 ...@@ -636,6 +636,17 @@ namespace es2
{ {
return true; return true;
} }
// GL_EXT_read_format_bgra combinations.
if(format == GL_BGRA_EXT)
{
if(type == GL_UNSIGNED_BYTE ||
type == GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT ||
type == GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT)
{
return true;
}
}
} }
else if(sw::Surface::isFloatFormat(internalformat)) else if(sw::Surface::isFloatFormat(internalformat))
{ {
......
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