fixed a crash when displaying inventory with OpenGL off

This commit is contained in:
Zeno Rogue 2020-02-07 18:34:47 +01:00
parent 602ee9df0c
commit 5cbe61a823
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ EX int compileShader(int type, const string& s) {
}
GLprogram::GLprogram(string vsh, string fsh) {
if(noshaders) {
if(noshaders || !vid.usingGL) {
uFog = -1;
uProjection = -1;
uPP = -1;