fixed no-GL crash again

This commit is contained in:
Zeno Rogue committed 2020-03-07 04:47:11 +01:00
1 parent a053da7da2
commit 124ee9a467
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -286,7 +286,7 @@ shared_ptr<glhr::GLprogram> write_shader(flagtype shader_flags) {
vsh += varying;
vsh += vmain;
if(glhr::noshaders) fsh = vsh = "";
if(glhr::noshaders || !vid.usingGL) fsh = vsh = "";
string both = fsh + "*" + vsh + "*" + its(shader_flags);
if(compiled_programs.count(both))