- patch self-modifying code only if the software renderer is running.

git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@786 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
Christoph Oelckers 2010-05-01 10:14:39 +00:00
parent 66ba6b5b60
commit 5a73fa0414

View file

@ -53,6 +53,8 @@
//#include "gl/data/gl_data.h"
#include "gl/gl_functions.h"
EXTERN_CVAR(Int, vid_renderer)
// MACROS ------------------------------------------------------------------
#if 0
@ -1418,7 +1420,10 @@ void R_SetupBuffer ()
dc_pitch = pitch;
R_InitFuzzTable (pitch);
#if defined(X86_ASM) || defined(X64_ASM)
ASM_PatchPitch ();
if (vid_renderer == 0)
{
ASM_PatchPitch ();
}
#endif
}
dc_destorg = lineptr;