[Bf-blender-cvs] [5908340] master: OpenSubdiv: Attempt to solve crash on certain GPUs/drivers

Sergey Sharybin noreply at git.blender.org
Thu Aug 27 11:07:45 CEST 2015


Commit: 5908340f79726335a703d83c1c34e6b612532bc6
Author: Sergey Sharybin
Date:   Thu Aug 27 11:04:54 2015 +0200
Branches: master
https://developer.blender.org/rB5908340f79726335a703d83c1c34e6b612532bc6

OpenSubdiv: Attempt to solve crash on certain GPUs/drivers

===================================================================

M	intern/opensubdiv/gpu_shader_opensubd_display.glsl

===================================================================

diff --git a/intern/opensubdiv/gpu_shader_opensubd_display.glsl b/intern/opensubdiv/gpu_shader_opensubd_display.glsl
index f0f0bb7..e2574b5 100644
--- a/intern/opensubdiv/gpu_shader_opensubd_display.glsl
+++ b/intern/opensubdiv/gpu_shader_opensubd_display.glsl
@@ -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 */




More information about the Bf-blender-cvs mailing list