diff --git a/source/glbackend/glbackend.cpp b/source/glbackend/glbackend.cpp index 9401b4786..c00689bb7 100644 --- a/source/glbackend/glbackend.cpp +++ b/source/glbackend/glbackend.cpp @@ -50,6 +50,8 @@ #include "hw_renderstate.h" #include "hw_cvars.h" +CVAR(Bool, gl_texture, true, 0) + F2DDrawer twodpsp; static int BufferLock = 0; @@ -167,7 +169,7 @@ void PolymostRenderState::Apply(FRenderState& state, GLState& oldState) } else { - state.EnableTexture(true); + state.EnableTexture(gl_texture); state.SetMaterial(mMaterial.mMaterial, mMaterial.mClampMode, mMaterial.mTranslation, mMaterial.mOverrideShader); } /* todo: bind indexed textures */