removed unused variable dim3

This commit is contained in:
Zeno Rogue 2019-03-20 21:15:42 +01:00
parent bc3e7f2e95
commit b62155b551
2 changed files with 1 additions and 2 deletions

View File

@ -215,7 +215,6 @@ glhr::glmatrix model_orientation_gl() {
void display_data::set_projection(int ed, bool apply_models) {
DEBB(DF_GRAPH, (debugfile,"current_display->set_projection\n"));
bool dim3 = false;
bool pers3 = false;
shaderside_projection = false;
@ -242,7 +241,6 @@ void display_data::set_projection(int ed, bool apply_models) {
if(spherephase == 2) glhr::new_shader_projection = glhr::shader_projection::standardS32;
if(spherephase == 3) glhr::new_shader_projection = glhr::shader_projection::standardS33;
}
if(DIM == 3 && apply_models && shaderside_projection) dim3 = true;
}
start_projection(ed, shaderside_projection);

View File

@ -5933,6 +5933,7 @@ void drawthemap() {
if(pmodel == mdDisk && abs(vid.alpha) < 1e-6) spatial_graphics = false;
if(!spatial_graphics) wmspatial = mmspatial = false;
if(DIM == 3) wmspatial = mmspatial = true;
DEBB(DF_GRAPH, (debugfile,"draw the map\n"));