Implements support for rgb8 and rgba8 renderbuffer storage formats
TRAC #12717
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@394 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/libGLESv2.cpp b/src/libGLESv2/libGLESv2.cpp
index 7a4b9ab..2c231cb 100644
--- a/src/libGLESv2/libGLESv2.cpp
+++ b/src/libGLESv2/libGLESv2.cpp
@@ -3641,6 +3641,8 @@
case GL_RGB565:
case GL_STENCIL_INDEX8:
case GL_DEPTH24_STENCIL8_OES:
+ case GL_RGB8_OES:
+ case GL_RGBA8_OES:
break;
default:
return error(GL_INVALID_ENUM);
@@ -3674,6 +3676,8 @@
case GL_RGBA4:
case GL_RGB5_A1:
case GL_RGB565:
+ case GL_RGB8_OES:
+ case GL_RGBA8_OES:
context->setRenderbufferStorage(new gl::Colorbuffer(width, height, internalformat, samples));
break;
case GL_STENCIL_INDEX8: