mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-06-02 02:01:19 +00:00
- 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:
parent
66ba6b5b60
commit
5a73fa0414
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue