mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-13 00:30:29 +01:00
updated assertion
This commit is contained in:
parent
44a22a2c28
commit
263fff44b4
1 changed files with 8 additions and 4 deletions
|
|
@ -2029,12 +2029,16 @@ _mesa_add_renderbuffer(struct gl_framebuffer *fb,
|
|||
{
|
||||
assert(fb);
|
||||
assert(rb);
|
||||
#if 00
|
||||
/* there should be no previous renderbuffer on this attachment point! */
|
||||
assert(fb->Attachment[bufferName].Renderbuffer == NULL);
|
||||
#endif
|
||||
assert(bufferName < BUFFER_COUNT);
|
||||
|
||||
/* There should be no previous renderbuffer on this attachment point,
|
||||
* with the exception of depth/stencil since the same renderbuffer may
|
||||
* be used for both.
|
||||
*/
|
||||
assert(bufferName == BUFFER_DEPTH ||
|
||||
bufferName == BUFFER_STENCIL ||
|
||||
fb->Attachment[bufferName].Renderbuffer == NULL);
|
||||
|
||||
/* winsys vs. user-created buffer cross check */
|
||||
if (fb->Name) {
|
||||
assert(rb->Name);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue