forked from bartvdbraak/blender
GL: Improve framebuffer error message by adding framebuffer name
Framebuffer error can be hard to track. This makes it much easier to find the wrong framebuffer configuration.
This commit is contained in:
parent
f4f4495586
commit
e49b702527
@ -142,13 +142,13 @@ bool GLFrameBuffer::check(char err_out[256])
|
|||||||
|
|
||||||
#undef FORMAT_STATUS
|
#undef FORMAT_STATUS
|
||||||
|
|
||||||
const char *format = "GPUFrameBuffer: frame-buffer status %s\n";
|
const char *format = "GPUFrameBuffer: %s status %s\n";
|
||||||
|
|
||||||
if (err_out) {
|
if (err_out) {
|
||||||
BLI_snprintf(err_out, 256, format, err);
|
BLI_snprintf(err_out, 256, format, this->name_, err);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, format, err);
|
fprintf(stderr, format, this->name_, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user