new comment

This commit is contained in:
Brian Paul
2005-09-07 23:21:59 +00:00
parent f0da327c87
commit ab8ef280ec

View File

@@ -1184,6 +1184,7 @@ _mesa_FramebufferRenderbufferEXT(GLenum target, GLenum attachment,
}
if (ctx->DrawBuffer->Name == 0) {
/* Can't attach new renderbuffers to a window system framebuffer */
_mesa_error(ctx, GL_INVALID_OPERATION, "glFramebufferRenderbufferEXT");
return;
}