From ace4ad62fd43ec909a33a6a460c9966a34d013d5 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 9 Jun 2021 04:44:04 +0200 Subject: [PATCH] fixed a bug with the raycaster shader crashing -- (affected Bringris and notknot) --- raycaster.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/raycaster.cpp b/raycaster.cpp index 226c9c55..8be87e16 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -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");