OpenSubdiv: Attempt to solve crash on certain GPUs/drivers
This commit is contained in:
parent
74c3ebad12
commit
5908340f79
|
@ -52,6 +52,10 @@ void main()
|
|||
{
|
||||
outpt.v.position = modelViewMatrix * position;
|
||||
outpt.v.normal = normalize(normalMatrix * normal);
|
||||
/* Some compilers expects gl_Position to be written.
|
||||
* It's not needed once we explicitly switch to GLSL 1.40 or above.
|
||||
*/
|
||||
gl_Position = outpt.v.position;
|
||||
}
|
||||
|
||||
#endif /* VERTEX_SHADER */
|
||||
|
|
Loading…
Reference in New Issue