diff options
Diffstat (limited to 'StarsEx/Starshatter.cpp')
-rw-r--r-- | StarsEx/Starshatter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/StarsEx/Starshatter.cpp b/StarsEx/Starshatter.cpp index 894644b..62b728f 100644 --- a/StarsEx/Starshatter.cpp +++ b/StarsEx/Starshatter.cpp @@ -2284,8 +2284,7 @@ Starshatter::LoadVideoConfig(const char* filename) bool vertex_shader = true; bool pixel_shader = true; float depth_bias = video_settings->depth_bias; - - max_tex_size = 2048; + int max_tex_size = 2048; if (MachineInfo::GetCpuSpeed() >= 1000 && MachineInfo::GetTotalRam() > 128) terrain_detail_level = 4; @@ -2508,6 +2507,7 @@ Starshatter::LoadVideoConfig(const char* filename) video_settings->enable_vs = vertex_shader; video_settings->enable_ps = pixel_shader; video_settings->depth_bias = depth_bias; + video_settings->tex_size = max_tex_size; } if (video) { @@ -2532,7 +2532,7 @@ Starshatter::SaveVideoConfig(const char* filename) fprintf(f, "height: %4d\n", video_settings->fullscreen_mode.height); fprintf(f, "depth: %4d\n", video_settings->fullscreen_mode.format == VideoMode::FMT_R5G6B5 ? 16 : 32); fprintf(f, "\n"); - fprintf(f, "max_tex: %4d\n", max_tex_size); + fprintf(f, "max_tex: %4d\n", video_settings->tex_size); fprintf(f, "primary3D: %s\n", "true"); fprintf(f, "gamma: %4d\n", video_settings->gamma); fprintf(f, "\n"); |