OpenGL: Correct boolean vector strcmp strings for uniforms

This commit is contained in:
Lioncash 2016-02-16 20:45:29 -05:00
parent 5c2dbc59a1
commit e77334960a
2 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ Bugfixes:
- Qt: Fix sending gameStopped twice
- Qt: Fix hang if audio sync is enabled and audio fails to initialize
- GBA BIOS: Fix RegisterRamReset setting DISPCNT to the wrong value
- OpenGL: Correct boolean vector strcmp strings for uniforms
Misc:
- GBA: Slightly optimize GBAProcessEvents

View File

@ -743,11 +743,11 @@ static bool _loadUniform(struct Configuration* description, size_t pass, struct
uniform->type = GL_INT_VEC4;
} else if (!strcmp(type, "bool")) {
uniform->type = GL_BOOL;
} else if (!strcmp(type, "int2")) {
} else if (!strcmp(type, "bool2")) {
uniform->type = GL_BOOL_VEC2;
} else if (!strcmp(type, "int3")) {
} else if (!strcmp(type, "bool3")) {
uniform->type = GL_BOOL_VEC3;
} else if (!strcmp(type, "int4")) {
} else if (!strcmp(type, "bool4")) {
uniform->type = GL_BOOL_VEC4;
} else {
return false;