mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
Delete written-only fields
This commit is contained in:
parent
41a04aedd2
commit
8d26df7b25
@ -410,9 +410,6 @@ struct rendering_state {
|
||||
|
||||
wrap_type cur_wrap_type;
|
||||
|
||||
float cur_fog_start, cur_fog_end;
|
||||
float cur_near_z, cur_far_z;
|
||||
|
||||
int cur_alpha;
|
||||
ddgr_color cur_color;
|
||||
ddgr_color cur_fog_color;
|
||||
|
@ -129,8 +129,6 @@ void rend_SetFiltering(int8_t state) {
|
||||
|
||||
// Sets the near and far planes for z buffer
|
||||
void rend_SetZValues(float nearz, float farz) {
|
||||
gpu_state.cur_near_z = nearz;
|
||||
gpu_state.cur_far_z = farz;
|
||||
// mprintf(0,"OPENGL:Setting depth range to %f - %f\n",nearz,farz);
|
||||
|
||||
// JEFF: glDepthRange must take parameters [0,1]
|
||||
|
@ -1443,9 +1443,6 @@ void rend_SetFogBorders(float nearz, float farz) {
|
||||
float fogStart = nearz;
|
||||
float fogEnd = farz;
|
||||
|
||||
gpu_state.cur_fog_start = fogStart;
|
||||
gpu_state.cur_fog_end = fogEnd;
|
||||
|
||||
dglFogi(GL_FOG_MODE, GL_LINEAR);
|
||||
dglFogf(GL_FOG_START, fogStart);
|
||||
dglFogf(GL_FOG_END, fogEnd);
|
||||
|
Loading…
Reference in New Issue
Block a user