From 0cda35b6160cc7d69ccb0c7d44a4f45e036ecfc5 Mon Sep 17 00:00:00 2001 From: hourai-dev <63674710+hourai-dev@users.noreply.github.com> Date: Sat, 6 Mar 2021 23:57:00 -0500 Subject: [PATCH] Fix crash due to shader program linking error When built from master, Openspades would crash at startup with the following error: ``` Error while linking a program: 'Shaders/BasicBlock.program' error: unresolved reference to function 'PrepareForRadiosityForMap_Map' ``` The culprit was said function's definition in `MapRadiosityNull.vs` which was missing a parameter. Fixes #944 --- Resources/Shaders/Shadow/MapRadiosityNull.vs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Shaders/Shadow/MapRadiosityNull.vs b/Resources/Shaders/Shadow/MapRadiosityNull.vs index 763ad274..a05b7915 100644 --- a/Resources/Shaders/Shadow/MapRadiosityNull.vs +++ b/Resources/Shaders/Shadow/MapRadiosityNull.vs @@ -24,7 +24,7 @@ void PrepareForRadiosity_Map(vec3 vertexCoord, vec3 normal) { hemisphereLighting = 1. - normal.z * .2; } -void PrepareForRadiosityForMap_Map(vec3 vertexCoord, vec3 normal) { +void PrepareForRadiosityForMap_Map(vec3 vertexCoord, vec3 centerCoord, vec3 normal) { hemisphereLighting = 1. - normal.z * .2; }