From 2e5d0eb1eecc52b20d1e9f7a3ce0317b851442c4 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 14 Mar 2022 19:36:33 +0100 Subject: Moved max texture size to GameWinDX9 --- Stars45/StarSystem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Stars45/StarSystem.cpp') diff --git a/Stars45/StarSystem.cpp b/Stars45/StarSystem.cpp index e78d970..a321afd 100644 --- a/Stars45/StarSystem.cpp +++ b/Stars45/StarSystem.cpp @@ -21,6 +21,7 @@ #include "Weather.h" #include "Game.h" +#include "GameWinDX9.h" #include "Sound.h" #include "Solid.h" #include "Light.h" @@ -1093,7 +1094,7 @@ StarSystem::CreateBody(OrbitalBody& body) Text surface = body.tex_name; Text glow = body.tex_glow; - if (Game::GetInstance()->MaxTexSize() >= 512) { + if (GameWinDX9::GetInstance()->MaxTexSize() >= 512) { if (body.tex_high_res.length()) surface = body.tex_high_res; -- cgit v1.1