Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2021-02-03 19:09:35 +0300
committerClément Foucault <foucault.clem@gmail.com>2021-02-03 19:11:17 +0300
commite49b702527440997ef32967ef368c1212a2311f9 (patch)
treebc2483673aef6da4528aaa89d1c3a6ae63977226
parentf4f4495586c67817d34cddf8c519992c42ac1e50 (diff)
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.
-rw-r--r--source/blender/gpu/opengl/gl_framebuffer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpu/opengl/gl_framebuffer.cc b/source/blender/gpu/opengl/gl_framebuffer.cc
index cbb332388dc..aea19295311 100644
--- a/source/blender/gpu/opengl/gl_framebuffer.cc
+++ b/source/blender/gpu/opengl/gl_framebuffer.cc
@@ -142,13 +142,13 @@ bool GLFrameBuffer::check(char err_out[256])
#undef FORMAT_STATUS
- const char *format = "GPUFrameBuffer: frame-buffer status %s\n";
+ const char *format = "GPUFrameBuffer: %s status %s\n";
if (err_out) {
- BLI_snprintf(err_out, 256, format, err);
+ BLI_snprintf(err_out, 256, format, this->name_, err);
}
else {
- fprintf(stderr, format, err);
+ fprintf(stderr, format, this->name_, err);
}
return false;