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
This commit is contained in:
hourai-dev 2021-03-06 23:57:00 -05:00
parent b6f70c3619
commit 0cda35b616
No known key found for this signature in database
GPG Key ID: 004F2CF0623785FE

View File

@ -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;
}