Corrected issue with shader loading

When using FormatText() several times in same function, returned string is static and so, the same is returned, resulting in failures on shader loading.
This commit is contained in:
Ray 2019-05-18 01:24:00 +02:00
parent 5ef7beb0c5
commit 6332bc0398
3 changed files with 38 additions and 29 deletions

View file

@ -28,5 +28,5 @@ void main()
vec4 clipPos = projection*rotView*vec4(vertexPosition, 1.0);
// Calculate final vertex position
gl_Position = clipPos.xyww;
gl_Position = clipPos.xyzw;
}