mirror of https://github.com/snes9xgit/snes9x.git
win32/glsl: Fix crash.
This commit is contained in:
parent
f83525490f
commit
c9f1e8d79b
|
@ -31,7 +31,7 @@ static int scale_string_to_enum(std::string string)
|
|||
{ "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)
|
||||
return map[i].value;
|
||||
return GLSL_NONE;
|
||||
|
|
Loading…
Reference in New Issue