mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 06:27:17 +00:00
fixed a bug with the raycaster shader crashing -- (affected Bringris and notknot)
This commit is contained in:
parent
b71e436cb6
commit
ace4ad62fd
@ -177,7 +177,10 @@ static const bool can_via_texture = true;
|
|||||||
|
|
||||||
|
|
||||||
raycaster::raycaster(string vsh, string fsh) : GLprogram(vsh, fsh) {
|
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");
|
uStart = glGetUniformLocation(_program, "uStart");
|
||||||
uStartid = glGetUniformLocation(_program, "uStartid");
|
uStartid = glGetUniformLocation(_program, "uStartid");
|
||||||
uM = glGetUniformLocation(_program, "uM");
|
uM = glGetUniformLocation(_program, "uM");
|
||||||
|
Loading…
Reference in New Issue
Block a user