mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
mesa: Allow color renderbuffers besides just RGB and RGBA.
We did so already for textures to do ARB_fbo's GL_ALPHA/GL_LUMINANCE/etc. support and for ARB_texture_rg's GL_RED and GL_RG, but this path was missed.
This commit is contained in:
parent
2d29349c00
commit
beac6ee62a
1 changed files with 1 additions and 2 deletions
|
|
@ -542,8 +542,7 @@ test_attachment_completeness(const struct gl_context *ctx, GLenum format,
|
|||
return;
|
||||
}
|
||||
if (format == GL_COLOR) {
|
||||
if (baseFormat != GL_RGB &&
|
||||
baseFormat != GL_RGBA) {
|
||||
if (!is_legal_color_format(ctx, baseFormat)) {
|
||||
att_incomplete("bad renderbuffer color format");
|
||||
att->Complete = GL_FALSE;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue