diff options
Diffstat (limited to 'code')
-rw-r--r-- | code/qcommon/q_platform.h | 18 | ||||
-rw-r--r-- | code/renderer/tr_backend.c | 22 | ||||
-rw-r--r-- | code/renderer/tr_init.c | 4 |
3 files changed, 0 insertions, 44 deletions
diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h index 2fddaee..b7ac01f 100644 --- a/code/qcommon/q_platform.h +++ b/code/qcommon/q_platform.h @@ -114,24 +114,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #endif -//=================================================================== MAC === - -#ifdef __MACOS__ - -#include <MacTypes.h> - -#define OS_STRING "macos" -#define ID_INLINE inline -#define PATH_SEP ':' - -#define ARCH_STRING "ppc" - -void Sys_PumpEvents( void ); - -#define Q3_BIG_ENDIAN - -#endif - //================================================================= LINUX === #ifdef __linux__ diff --git a/code/renderer/tr_backend.c b/code/renderer/tr_backend.c index b8a07b4..6c93c14 100644 --- a/code/renderer/tr_backend.c +++ b/code/renderer/tr_backend.c @@ -526,15 +526,6 @@ void RB_RenderDrawSurfList( drawSurf_t *drawSurfs, int numDrawSurfs ) { drawSurf_t *drawSurf; int oldSort; float originalTime; -#ifdef __MACOS__ - int macEventTime; - - Sys_PumpEvents(); // crutch up the mac's limited buffer queue size - - // we don't want to pump the event loop too often and waste time, so - // we are going to check every shader change - macEventTime = ri.Milliseconds() + MAC_EVENT_PUMP_MSEC; -#endif // save original time for entity shader offsets originalTime = backEnd.refdef.floatTime; @@ -570,15 +561,6 @@ void RB_RenderDrawSurfList( drawSurf_t *drawSurfs, int numDrawSurfs ) { if (shader != oldShader || fogNum != oldFogNum || dlighted != oldDlighted || ( entityNum != oldEntityNum && !shader->entityMergable ) ) { if (oldShader != NULL) { -#ifdef __MACOS__ // crutch up the mac's limited buffer queue size - int t; - - t = ri.Milliseconds(); - if ( t > macEventTime ) { - macEventTime = t + MAC_EVENT_PUMP_MSEC; - Sys_PumpEvents(); - } -#endif RB_EndSurface(); } RB_BeginSurface( shader, fogNum ); @@ -664,10 +646,6 @@ void RB_RenderDrawSurfList( drawSurf_t *drawSurfs, int numDrawSurfs ) { // add light flares on lights that aren't obscured RB_RenderFlares(); - -#ifdef __MACOS__ - Sys_PumpEvents(); // crutch up the mac's limited buffer queue size -#endif } diff --git a/code/renderer/tr_init.c b/code/renderer/tr_init.c index ca0c26f..ffdd997 100644 --- a/code/renderer/tr_init.c +++ b/code/renderer/tr_init.c @@ -919,11 +919,7 @@ void R_Register( void ) r_finish = ri.Cvar_Get ("r_finish", "0", CVAR_ARCHIVE); r_textureMode = ri.Cvar_Get( "r_textureMode", "GL_LINEAR_MIPMAP_NEAREST", CVAR_ARCHIVE ); r_swapInterval = ri.Cvar_Get( "r_swapInterval", "0", CVAR_ARCHIVE ); -#ifdef __MACOS__ - r_gamma = ri.Cvar_Get( "r_gamma", "1.2", CVAR_ARCHIVE ); -#else r_gamma = ri.Cvar_Get( "r_gamma", "1", CVAR_ARCHIVE ); -#endif r_facePlaneCull = ri.Cvar_Get ("r_facePlaneCull", "1", CVAR_ARCHIVE ); r_railWidth = ri.Cvar_Get( "r_railWidth", "16", CVAR_ARCHIVE ); |