Skip to content

Commit c8130b4

Browse files
committed
GRAPHICS: Use const string array for shadow names.
Using a vector seems overkill here.
1 parent ba2e57f commit c8130b4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/graphics/graphics_gl2.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -944,11 +944,7 @@ void GraphicsGL2::SetupCameras(
944944
light_rotation.SetAxisAngle(a, x[0], x[1], x[2]);
945945
}
946946

947-
std::vector <std::string> shadow_names;
948-
shadow_names.push_back("near");
949-
shadow_names.push_back("medium");
950-
shadow_names.push_back("far");
951-
947+
const std::string shadow_names[] = {"near", "medium", "far"};
952948
for (int i = 0; i < 3; i++)
953949
{
954950
float shadow_radius = (1<<i)*closeshadow+(i)*20.0; //5,30,60

0 commit comments

Comments
 (0)