summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/Starshatter.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-10 00:30:31 +0200
committerAki <please@ignore.pl>2022-04-10 00:30:31 +0200
commit06683d2e60da5144e5483c3d0cf88aa28dab1c8a (patch)
tree646b470948b93a1dd18ba759f071ff454211feb1 /StarsEx/Starshatter.cpp
parent595140fc96fc48ac6934615d37bd2b4a180d716d (diff)
downloadstarshatter-06683d2e60da5144e5483c3d0cf88aa28dab1c8a.zip
starshatter-06683d2e60da5144e5483c3d0cf88aa28dab1c8a.tar.gz
starshatter-06683d2e60da5144e5483c3d0cf88aa28dab1c8a.tar.bz2
Requested texture size is now managed by Video and Video Settings
Diffstat (limited to 'StarsEx/Starshatter.cpp')
-rw-r--r--StarsEx/Starshatter.cpp6
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");