Fix T58949: Transform feedback shaders not having fragment shader
authorClément Foucault <foucault.clem@gmail.com>
Fri, 7 Dec 2018 20:19:02 +0000 (21:19 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Fri, 7 Dec 2018 20:19:14 +0000 (21:19 +0100)
source/blender/draw/intern/draw_manager_shader.c

index a2583045adea5ffd1e4cc9531da664925787beb7..e8d693aa7c09cbaf33af57681bbae922272246c8 100644 (file)
@@ -47,6 +47,7 @@
 
 extern char datatoc_gpu_shader_2D_vert_glsl[];
 extern char datatoc_gpu_shader_3D_vert_glsl[];
+extern char datatoc_gpu_shader_depth_only_frag_glsl[];
 extern char datatoc_common_fullscreen_vert_glsl[];
 
 #define USE_DEFERRED_COMPILATION 1
@@ -295,7 +296,9 @@ GPUShader *DRW_shader_create_with_transform_feedback(
         const char *vert, const char *geom, const char *defines,
         const GPUShaderTFBType prim_type, const char **varying_names, const int varying_count)
 {
-       return GPU_shader_create_ex(vert, NULL, geom, NULL, defines,
+       return GPU_shader_create_ex(vert,
+                                   datatoc_gpu_shader_depth_only_frag_glsl,
+                                   geom, NULL, defines,
                                    prim_type, varying_names, varying_count, __func__);
 }