summaryrefslogtreecommitdiff
path: root/src/refresh/sw/misc.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2013-03-16 00:44:15 +0400
committerAndrey Nazarov <skuller@skuller.net>2013-03-19 03:44:50 +0400
commit6e5aa4dec92010a3794152a379d95f62fb8cc029 (patch)
treeb5c7a53488a43cd2b55730405f50cd532030d899 /src/refresh/sw/misc.c
parent5a4744ed5ccab66fa7b45c5369d210807f120137 (diff)
Remove x86 assembly code.
Diffstat (limited to 'src/refresh/sw/misc.c')
-rw-r--r--src/refresh/sw/misc.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/refresh/sw/misc.c b/src/refresh/sw/misc.c
index 6829280..755b5fe 100644
--- a/src/refresh/sw/misc.c
+++ b/src/refresh/sw/misc.c
@@ -38,30 +38,6 @@ short *zspantable[MAXHEIGHT];
/*
================
-D_Patch
-================
-*/
-void D_Patch(void)
-{
-#if USE_ASM
- extern void D_Aff8Patch(void);
- static qboolean protectset8 = qfalse;
- extern void D_PolysetAff8Start(void);
-
- if (!protectset8) {
- Sys_MakeCodeWriteable((uintptr_t)D_PolysetAff8Start,
- (uintptr_t)D_Aff8Patch - (uintptr_t)D_PolysetAff8Start);
- Sys_MakeCodeWriteable((uintptr_t)R_Surf8Start,
- (uintptr_t)R_Surf8End - (uintptr_t)R_Surf8Start);
- protectset8 = qtrue;
- }
-
- R_Surf8Patch();
- D_Aff8Patch();
-#endif
-}
-/*
-================
D_ViewChanged
================
*/
@@ -103,8 +79,6 @@ void D_ViewChanged(void)
memset(d_pzbuffer, 0xff, vid.width * vid.height * sizeof(d_pzbuffer[0]));
R_DrawFill8(r_newrefdef.x, r_newrefdef.y, r_newrefdef.width, r_newrefdef.height, /*(int)sw_clearcolor->value & 0xff*/0);
}
-
- D_Patch();
}