diff options
Diffstat (limited to 'src/engine/depthfx.h')
| -rw-r--r-- | src/engine/depthfx.h | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/src/engine/depthfx.h b/src/engine/depthfx.h index a9c0fdf..8332ab5 100644 --- a/src/engine/depthfx.h +++ b/src/engine/depthfx.h @@ -15,7 +15,6 @@ VARP(depthfxparts, 0, 1, 1); VARP(blurdepthfx, 0, 1, 7); VARP(blurdepthfxsigma, 1, 50, 200); VAR(depthfxscissor, 0, 2, 2); -VAR(debugdepthfx, 0, 0, 1); #define MAXDFXRANGES 4 @@ -73,7 +72,7 @@ static struct depthfxtexture : rendertarget { extern void finddepthfxranges(); finddepthfxranges(); - return (numdepthfxranges && scissorx1 < scissorx2 && scissory1 < scissory2) || debugdepthfx; + return (numdepthfxranges && scissorx1 < scissorx2 && scissory1 < scissory2); } bool dorender() @@ -107,18 +106,6 @@ static struct depthfxtexture : rendertarget return numdepthfxranges > 0; } - - void dodebug(int w, int h) - { - if(numdepthfxranges > 0) - { - gle::colorf(0, 1, 0); - debugscissor(w, h, true); - gle::colorf(0, 0, 1); - debugblurtiles(w, h, true); - gle::colorf(1, 1, 1); - } - } } depthfxtex; void cleanupdepthfx() @@ -126,17 +113,11 @@ void cleanupdepthfx() depthfxtex.cleanup(true); } -void viewdepthfxtex() -{ - if(!depthfx) return; - depthfxtex.debug(); -} - bool depthfxing = false; bool binddepthfxtex() { - if(!reflecting && !refracting && depthfx && depthfxtex.rendertex && numdepthfxranges>0) + if(!reflecting && !refracting && depthfx && depthfxtex.rendertex && numdepthfxranges>0) { glActiveTexture_(GL_TEXTURE2); glBindTexture(GL_TEXTURE_2D, depthfxtex.rendertex); |
