diff options
author | Marek Olšák <[email protected]> | 2011-05-14 04:42:29 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-05-17 00:13:43 +0200 |
commit | a3ac28a736c56cbdee0daa6e30c7a8b984a90ec6 (patch) | |
tree | 0be37adc6e9d918f2b2ba7565e3f0df1beff54eb /src/mesa/main | |
parent | 947190ab4bbc8ea99bda3c464013af2a87c3286d (diff) |
mesa: make RGB9_E5 non-renderable on swrast again
_BaseFormat for RGB9_E5 is GL_RGBA due to the previous revert.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/fbobject.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 64f135e21dd..67df53b889c 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -418,18 +418,16 @@ _mesa_validate_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb) case GL_RG: fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED; return; - case GL_RGB: + + default: switch (rb->Format) { + /* XXX This list is likely incomplete. */ case MESA_FORMAT_RGB9_E5_FLOAT: fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED; return; default:; + /* render buffer format is supported by software rendering */ } - break; - - default: - /* render buffer format is supported by software rendering */ - ; } } } |