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
1 changed files with 4 additions and 1 deletions

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");