From 50a3349bee04088bee3491622d6ef3c032d01eac Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 7 Sep 2010 14:31:22 -0700 Subject: mesa: Set the base format of GL_ALPHA FBOs and teach swrast about it. Fixes assertion failures in fbo-alpha with a debug build of Mesa. Bug #29781. --- src/mesa/main/fbobject.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mesa/main/fbobject.c') diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index defdebbdefa..72cbb09ab83 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -925,6 +925,12 @@ GLenum _mesa_base_fbo_format(GLcontext *ctx, GLenum internalFormat) { switch (internalFormat) { + case GL_ALPHA: + case GL_ALPHA4: + case GL_ALPHA8: + case GL_ALPHA12: + case GL_ALPHA16: + return GL_ALPHA; case GL_RGB: case GL_R3_G3_B2: case GL_RGB4: -- cgit v1.2.3