From 4afd5db47e1f0cb15080726d9a9df1ed1057b573 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Wed, 3 Dec 2014 19:49:48 +0100 Subject: Only annoy coders with warnings, not users. --- source/blender/gpu/intern/gpu_extensions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c index 036ea0d408e..078133789c8 100644 --- a/source/blender/gpu/intern/gpu_extensions.c +++ b/source/blender/gpu/intern/gpu_extensions.c @@ -749,7 +749,7 @@ void GPU_texture_bind(GPUTexture *tex, int number) } if (tex->fb) { - if (tex->fb->object == GG.currentfb) { + if (tex->fb->object == GG.currentfb && (G.debug & G_DEBUG)) { fprintf(stderr, "Feedback loop warning!: Attempting to bind texture attached to current framebuffer!\n"); } } @@ -884,7 +884,7 @@ int GPU_framebuffer_texture_attach(GPUFrameBuffer *fb, GPUTexture *tex, int slot return 0; } - if (tex->number != -1) { + if (tex->number != -1 && (G.debug & G_DEBUG)) { fprintf(stderr, "Feedback loop warning!: Attempting to attach texture to framebuffer while still bound to texture unit for drawing!"); } -- cgit v1.2.3