diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 61fb98c3b..991f254dc 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -2996,6 +2996,8 @@ EXPORT void HWRAPI(DoScreenWipe)(int wipeStart, int wipeEnd) 1.0f, 1.0f }; + if (!gl_enable_screen_textures) return; + // look for power of two that is large enough for the screen while (texsize < screen_width || texsize < screen_height) texsize <<= 1; @@ -3075,6 +3077,8 @@ EXPORT void HWRAPI(RenderVhsEffect) (fixed_t upbary, fixed_t downbary, UINT8 upd 1.0f, -1.0f, 1.0f }; + if (!gl_enable_screen_textures) return; + // look for power of two that is large enough for the screen while (texsize < screen_width || texsize < screen_height) texsize <<= 1;