From e49b702527440997ef32967ef368c1212a2311f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Wed, 3 Feb 2021 17:09:35 +0100 Subject: 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. --- source/blender/gpu/opengl/gl_framebuffer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/gpu/opengl/gl_framebuffer.cc') 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; -- cgit v1.2.3