OpenSubdiv: Attempt to solve crash on certain GPUs/drivers

This commit is contained in:
Sergey Sharybin 2015-08-27 11:04:54 +02:00
parent 74c3ebad12
commit 5908340f79
1 changed files with 4 additions and 0 deletions

View File

@ -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 */