diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-12-03 21:49:48 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-12-03 21:49:48 +0300 |
commit | 4afd5db47e1f0cb15080726d9a9df1ed1057b573 (patch) | |
tree | 89eae9d088fd75bfe806aac72ed8afdfe9f6bfac /source/blender/gpu/intern/gpu_extensions.c | |
parent | 87471874a9b37fa98ecc0e1e7669261997ca685c (diff) |
Only annoy coders with warnings, not users.
Diffstat (limited to 'source/blender/gpu/intern/gpu_extensions.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_extensions.c | 4 |
1 files changed, 2 insertions, 2 deletions
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!"); } |