mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
mesa: Mark FBOs with compressed color attachments as FBO-incomplete.
Both EXT_fbo and ARB_fbo agree on this. Fixes a segfault in the metaops mipmap generation in Intel for SGIS_generate_mipmap of S3TC textures in Regnum Online. Bug #21654.
This commit is contained in:
parent
97ccdee68a
commit
0307e609aa
1 changed files with 5 additions and 0 deletions
|
|
@ -368,6 +368,11 @@ test_attachment_completeness(const GLcontext *ctx, GLenum format,
|
|||
att->Complete = GL_FALSE;
|
||||
return;
|
||||
}
|
||||
if (texImage->TexFormat->TexelBytes == 0) {
|
||||
att_incomplete("compressed internalformat");
|
||||
att->Complete = GL_FALSE;
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (format == GL_DEPTH) {
|
||||
if (texImage->TexFormat->BaseFormat == GL_DEPTH_COMPONENT) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue