1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

fixed a bug with the raycaster shader crashing -- (affected Bringris and notknot)

This commit is contained in:
Zeno Rogue 2021-06-09 04:44:04 +02:00
parent b71e436cb6
commit ace4ad62fd

View File

@ -177,7 +177,10 @@ static const bool can_via_texture = true;
raycaster::raycaster(string vsh, string fsh) : GLprogram(vsh, fsh) {
println(hlog, "assigning");
/* need to set shader_flags to 0 so that attributes are not enabled */
shader_flags = 0;
uStart = glGetUniformLocation(_program, "uStart");
uStartid = glGetUniformLocation(_program, "uStartid");
uM = glGetUniformLocation(_program, "uM");