* Ditch Mac OS 9 support
This commit is contained in:
parent
1b314e8934
commit
796ba11301
3 changed files with 0 additions and 44 deletions
|
@ -114,24 +114,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
#endif
|
#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 ===
|
//================================================================= LINUX ===
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
|
|
@ -526,15 +526,6 @@ void RB_RenderDrawSurfList( drawSurf_t *drawSurfs, int numDrawSurfs ) {
|
||||||
drawSurf_t *drawSurf;
|
drawSurf_t *drawSurf;
|
||||||
int oldSort;
|
int oldSort;
|
||||||
float originalTime;
|
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
|
// save original time for entity shader offsets
|
||||||
originalTime = backEnd.refdef.floatTime;
|
originalTime = backEnd.refdef.floatTime;
|
||||||
|
@ -570,15 +561,6 @@ void RB_RenderDrawSurfList( drawSurf_t *drawSurfs, int numDrawSurfs ) {
|
||||||
if (shader != oldShader || fogNum != oldFogNum || dlighted != oldDlighted
|
if (shader != oldShader || fogNum != oldFogNum || dlighted != oldDlighted
|
||||||
|| ( entityNum != oldEntityNum && !shader->entityMergable ) ) {
|
|| ( entityNum != oldEntityNum && !shader->entityMergable ) ) {
|
||||||
if (oldShader != NULL) {
|
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_EndSurface();
|
||||||
}
|
}
|
||||||
RB_BeginSurface( shader, fogNum );
|
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
|
// add light flares on lights that aren't obscured
|
||||||
RB_RenderFlares();
|
RB_RenderFlares();
|
||||||
|
|
||||||
#ifdef __MACOS__
|
|
||||||
Sys_PumpEvents(); // crutch up the mac's limited buffer queue size
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -919,11 +919,7 @@ void R_Register( void )
|
||||||
r_finish = ri.Cvar_Get ("r_finish", "0", CVAR_ARCHIVE);
|
r_finish = ri.Cvar_Get ("r_finish", "0", CVAR_ARCHIVE);
|
||||||
r_textureMode = ri.Cvar_Get( "r_textureMode", "GL_LINEAR_MIPMAP_NEAREST", 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 );
|
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 );
|
r_gamma = ri.Cvar_Get( "r_gamma", "1", CVAR_ARCHIVE );
|
||||||
#endif
|
|
||||||
r_facePlaneCull = ri.Cvar_Get ("r_facePlaneCull", "1", CVAR_ARCHIVE );
|
r_facePlaneCull = ri.Cvar_Get ("r_facePlaneCull", "1", CVAR_ARCHIVE );
|
||||||
|
|
||||||
r_railWidth = ri.Cvar_Get( "r_railWidth", "16", CVAR_ARCHIVE );
|
r_railWidth = ri.Cvar_Get( "r_railWidth", "16", CVAR_ARCHIVE );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue