Commit 7c0d3471 by Alexis Hetu Committed by Alexis Hétu

Fixed R8 and RG8 frambuffers for GLES2

These were already available for GLES3 and exposed as texturable formats for GLES2 when the GL_EXT_texture_rg extension was exposed, but it should also have enabled these formats as renderable formats. Bug swiftshader:60 Change-Id: I598d7645b04737dae19dc88b4229fa3d7d231714 Reviewed-on: https://swiftshader-review.googlesource.com/9990Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 8cb9c9a1
......@@ -1052,6 +1052,8 @@ namespace es2
case GL_RGBA4:
case GL_RGB5_A1:
case GL_RGB565:
case GL_R8_EXT:
case GL_RG8_EXT:
case GL_RGB8_OES:
case GL_RGBA8_OES:
case GL_R16F:
......@@ -1064,9 +1066,6 @@ namespace es2
case GL_RGBA32F:
case GL_BGRA8_EXT:
return true;
case GL_R8_EXT:
case GL_RG8_EXT:
return isTexture || (clientVersion >= 3);
case GL_R8UI:
case GL_R8I:
case GL_R16UI:
......
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