Delete empty method

This commit is contained in:
Chris Sarbora 2024-07-01 01:49:29 -05:00
parent 8d26df7b25
commit fb2dbe8c92
No known key found for this signature in database
6 changed files with 2 additions and 24 deletions

View File

@ -809,9 +809,6 @@ void TCAMCallback(void) {
rend_SetOverlayType(OT_NONE);
rend_SetZBufferState(1);
if (AM_terrain)
rend_SetZValues(0, VisibleTerrainZ);
TCAMBuildRoomList(Viewer_object->roomnum);
// Render all rooms in view
for (int i = 0; i < Num_AM_rooms; i++) {

View File

@ -3462,12 +3462,10 @@ void RenderMine(int viewer_roomnum, int flag_automap, int called_from_terrain) {
g3_SetFarClipZ(VisibleTerrainZ);
if ((Terrain_sky.flags & TF_FOG) && (UseHardware || (!UseHardware && Lighting_on))) {
rend_SetZValues(0, VisibleTerrainZ);
rend_SetFogState(1);
rend_SetFogBorders(VisibleTerrainZ * .85, VisibleTerrainZ);
rend_SetFogColor(Terrain_sky.fog_color);
} else
rend_SetZValues(0, 5000);
}
}
// First render mirrored rooms

View File

@ -1406,15 +1406,11 @@ void RenderTerrain(uint8_t from_mine, int left, int top, int right, int bot) {
#ifndef NEWEDITOR
if ((Terrain_sky.flags & TF_FOG) && (UseHardware || (!UseHardware && Lighting_on))) {
rend_SetZValues(0, VisibleTerrainZ);
rend_SetFogState(1);
rend_SetFogBorders(VisibleTerrainZ * Terrain_sky.fog_scalar, Far_fog_border);
rend_SetFogColor(Terrain_sky.fog_color);
} else
#endif
{
rend_SetZValues(0, 5000);
}
#endif
// And display!
if (nt > 0) {

View File

@ -488,9 +488,6 @@ void rend_SetFiltering(int8_t state);
// Sets the state of zbuffering to on or off
void rend_SetZBufferState(int8_t state);
// Sets the near and far planes for z buffer
void rend_SetZValues(float nearz, float farz);
// Sets a bitmap as an overlay to rendered on top of the next texture map
void rend_SetOverlayMap(int handle);

View File

@ -127,15 +127,6 @@ void rend_SetFiltering(int8_t state) {
gpu_state.cur_bilinear_state = state;
}
// Sets the near and far planes for z buffer
void rend_SetZValues(float nearz, float farz) {
// mprintf(0,"OPENGL:Setting depth range to %f - %f\n",nearz,farz);
// JEFF: glDepthRange must take parameters [0,1]
// It is set in init
//@@dglDepthRange (0,farz);
}
// Sets a bitmap as a overlay map to rendered on top of the next texture map
// a -1 value indicates no overlay map
void rend_SetOverlayMap(int handle) { gpu_Overlay_map = handle; }

View File

@ -275,7 +275,6 @@ void opengl_SetDefaults() {
rend_SetTextureType(TT_FLAT);
rend_SetColorModel(CM_RGB);
rend_SetZBufferState(1);
rend_SetZValues(0, 3000);
rend_SetGammaValue(gpu_preferred_state.gamma);
OpenGL_last_bound[0] = 9999999;
OpenGL_last_bound[1] = 9999999;