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:
parent
5ef7beb0c5
commit
6332bc0398
3 changed files with 38 additions and 29 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue