Only annoy coders with warnings, not users.
This commit is contained in:
parent
87471874a9
commit
4afd5db47e
|
@ -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!");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue