Only annoy coders with warnings, not users.

This commit is contained in:
Antonis Ryakiotakis 2014-12-03 19:49:48 +01:00
parent 87471874a9
commit 4afd5db47e
1 changed files with 2 additions and 2 deletions

View File

@ -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!");
}