1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-03 13:03:38 +00:00

Fix stereo flag for custom shaders;

This commit is contained in:
bjorn 2019-08-27 14:58:54 -07:00
parent f97031a8ec
commit 31fed6a940

View file

@ -1481,7 +1481,7 @@ static int l_lovrGraphicsNewShader(lua_State* L) {
luax_parseshaderflags(L, -1, flags, &flagCount); luax_parseshaderflags(L, -1, flags, &flagCount);
lua_pop(L, 1); lua_pop(L, 1);
lua_getfield(L, 2, "stereo"); lua_getfield(L, 3, "stereo");
multiview = lua_isnil(L, -1) ? multiview : lua_toboolean(L, -1); multiview = lua_isnil(L, -1) ? multiview : lua_toboolean(L, -1);
lua_pop(L, 1); lua_pop(L, 1);
} }