mesa: make RGB9_E5 non-renderable on swrast again

_BaseFormat for RGB9_E5 is GL_RGBA due to the previous revert.
This commit is contained in:
Marek Olšák 2011-05-14 04:42:29 +02:00
parent 947190ab4b
commit a3ac28a736
1 changed files with 4 additions and 6 deletions

View 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 */
;
}
}
}