Commit fed7e890 by Alexis Hetu Committed by Alexis Hétu

Allowed BGRA textures to be copied

BGRA8 texture support also applies to texture copy operations. Change-Id: Ie3920585904c67ddf1b5b308eff60bc83f9e195b Reviewed-on: https://swiftshader-review.googlesource.com/5142Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent d89ef674
......@@ -65,6 +65,7 @@ static bool validateColorBufferFormat(GLenum textureFormat, GLenum colorbufferFo
colorbufferFormat != GL_RGBA4 &&
colorbufferFormat != GL_RGB5_A1 &&
colorbufferFormat != GL_RGBA8_OES &&
colorbufferFormat != GL_BGRA8_EXT &&
colorbufferFormat != GL_RGBA16F_EXT &&
colorbufferFormat != GL_RGBA32F_EXT)
{
......@@ -82,6 +83,7 @@ static bool validateColorBufferFormat(GLenum textureFormat, GLenum colorbufferFo
colorbufferFormat != GL_RGBA8_OES &&
colorbufferFormat != GL_RGB16F_EXT &&
colorbufferFormat != GL_RGB32F_EXT &&
colorbufferFormat != GL_BGRA8_EXT &&
colorbufferFormat != GL_RGBA16F_EXT &&
colorbufferFormat != GL_RGBA32F_EXT)
{
......@@ -94,6 +96,7 @@ static bool validateColorBufferFormat(GLenum textureFormat, GLenum colorbufferFo
colorbufferFormat != GL_RGBA4 &&
colorbufferFormat != GL_RGB5_A1 &&
colorbufferFormat != GL_RGBA8_OES &&
colorbufferFormat != GL_BGRA8_EXT &&
colorbufferFormat != GL_RGBA16F_EXT &&
colorbufferFormat != GL_RGBA32F_EXT)
{
......
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