make sure the GetOpenGL and GetZoomNoResize lua hooks actually work

This commit is contained in:
Tim Felgentreff 2017-06-11 17:33:15 +02:00
parent 9678f3b46e
commit a162d47488
2 changed files with 3 additions and 3 deletions

View file

@ -246,7 +246,7 @@ static int CclGetUseOpenGL(lua_State *l)
#else
lua_pushboolean(l, 0);
#endif
return 0;
return 1;
}
static int CclSetZoomNoResize(lua_State *l)
@ -274,7 +274,7 @@ static int CclGetZoomNoResize(lua_State *l)
#else
lua_pushboolean(l, 0);
#endif
return 0;
return 1;
}
/**

View file

@ -109,7 +109,7 @@ extern bool LoadShaders(int direction, char* shadernameOut) {
ExpandEnvironmentStrings(shaderPath.c_str(), cShaderPath, fullpathsize);
#else
shaderPath.append("/shaders/");
cShaderPath = shaderPath.c_str();
cShaderPath = (char*)shaderPath.c_str();
#endif
int n = ReadDataDirectory(cShaderPath, flp);
int numShaderFiles = 0;