win32/glsl: Fix crash.

This commit is contained in:
BearOso 2023-05-01 15:55:59 -05:00
parent f83525490f
commit c9f1e8d79b
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ static int scale_string_to_enum(std::string string)
{ "absolute", GLSL_ABSOLUTE } { "absolute", GLSL_ABSOLUTE }
}; };
for (size_t i = 0; i < sizeof(map); i++) for (size_t i = 0; i < 3; i++)
if (string == map[i].string) if (string == map[i].string)
return map[i].value; return map[i].value;
return GLSL_NONE; return GLSL_NONE;