diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-08-27 12:04:54 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-08-27 12:05:23 +0300 |
commit | 5908340f79726335a703d83c1c34e6b612532bc6 (patch) | |
tree | 1e09cf71754f15e738916fb4d098bb985f0deb53 /intern/opensubdiv | |
parent | 74c3ebad12c0d2aac9de35861c18f523f280ae4a (diff) |
OpenSubdiv: Attempt to solve crash on certain GPUs/drivers
Diffstat (limited to 'intern/opensubdiv')
-rw-r--r-- | intern/opensubdiv/gpu_shader_opensubd_display.glsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/opensubdiv/gpu_shader_opensubd_display.glsl b/intern/opensubdiv/gpu_shader_opensubd_display.glsl index f0f0bb783e6..e2574b5989e 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 */ |