From 5cbe61a8235a9aaaf82ccbb24858d593ed21d570 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 7 Feb 2020 18:34:47 +0100 Subject: [PATCH] fixed a crash when displaying inventory with OpenGL off --- glhr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glhr.cpp b/glhr.cpp index 3163a02c..da4fe0dc 100644 --- a/glhr.cpp +++ b/glhr.cpp @@ -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;