mesa: make RGB9_E5 non-renderable on swrast again
authorMarek Olšák <maraeo@gmail.com>
Sat, 14 May 2011 02:42:29 +0000 (04:42 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 16 May 2011 22:13:43 +0000 (00:13 +0200)
_BaseFormat for RGB9_E5 is GL_RGBA due to the previous revert.

src/mesa/main/fbobject.c

index 64f135e21dd498cf9d7bfe51abe326dccef149eb..67df53b889cc3de6666947b87c0700fa57ecd911 100644 (file)
@@ -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 */
-            ;
          }
       }
    }