mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
Remove the code that checks for duplicated framebuffer attachments (which
generated the error GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT). This was removed in version 117 of the GL_EXT_framebuffer_object spec.
This commit is contained in:
parent
59ebe1ff77
commit
f08f233d6f
1 changed files with 1 additions and 21 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Mesa 3-D graphics library
|
* Mesa 3-D graphics library
|
||||||
* Version: 6.5
|
* Version: 6.5.1
|
||||||
*
|
*
|
||||||
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
||||||
*
|
*
|
||||||
|
|
@ -524,26 +524,6 @@ _mesa_test_framebuffer_completeness(GLcontext *ctx, struct gl_framebuffer *fb)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if any renderbuffer is attached more than once.
|
|
||||||
* Note that there's one exception: a GL_DEPTH_STENCIL renderbuffer can be
|
|
||||||
* bound to both the stencil and depth attachment points at the same time.
|
|
||||||
*/
|
|
||||||
for (i = 0; i < BUFFER_COUNT - 1; i++) {
|
|
||||||
struct gl_renderbuffer *rb_i = fb->Attachment[i].Renderbuffer;
|
|
||||||
if (rb_i) {
|
|
||||||
GLint j;
|
|
||||||
for (j = i + 1; j < BUFFER_COUNT; j++) {
|
|
||||||
struct gl_renderbuffer *rb_j = fb->Attachment[j].Renderbuffer;
|
|
||||||
if (rb_i == rb_j && rb_i->_BaseFormat != GL_DEPTH_STENCIL_EXT) {
|
|
||||||
fb->_Status = GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT;
|
|
||||||
fbo_incomplete("multiply bound renderbuffer", -1);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (numImages == 0) {
|
if (numImages == 0) {
|
||||||
fb->_Status = GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT;
|
fb->_Status = GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT;
|
||||||
fbo_incomplete("no attachments", -1);
|
fbo_incomplete("no attachments", -1);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue