mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-13 04:13:03 +00:00
fixed no-GL crash again
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user