mesa: more detailed error messages in fbo code
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
#include "buffers.h"
|
#include "buffers.h"
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
|
#include "enums.h"
|
||||||
#include "fbobject.h"
|
#include "fbobject.h"
|
||||||
#include "framebuffer.h"
|
#include "framebuffer.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
@@ -1665,7 +1666,8 @@ _mesa_FramebufferRenderbufferEXT(GLenum target, GLenum attachment,
|
|||||||
att = _mesa_get_attachment(ctx, fb, attachment);
|
att = _mesa_get_attachment(ctx, fb, attachment);
|
||||||
if (att == NULL) {
|
if (att == NULL) {
|
||||||
_mesa_error(ctx, GL_INVALID_ENUM,
|
_mesa_error(ctx, GL_INVALID_ENUM,
|
||||||
"glFramebufferRenderbufferEXT(attachment)");
|
"glFramebufferRenderbufferEXT(invalid attachment %s)",
|
||||||
|
_mesa_lookup_enum_by_nr(attachment));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1673,7 +1675,8 @@ _mesa_FramebufferRenderbufferEXT(GLenum target, GLenum attachment,
|
|||||||
rb = _mesa_lookup_renderbuffer(ctx, renderbuffer);
|
rb = _mesa_lookup_renderbuffer(ctx, renderbuffer);
|
||||||
if (!rb) {
|
if (!rb) {
|
||||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||||
"glFramebufferRenderbufferEXT(renderbuffer)");
|
"glFramebufferRenderbufferEXT(non-existant"
|
||||||
|
" renderbuffer %u)", renderbuffer);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user