From 9bc47ed0f6d0db9e43af30c741a7e5ac347cbecd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 21 Jan 2019 23:51:34 +1100 Subject: Fix clipping shaders with some AMD/Intel drivers Caused: error: unsized array index must be constant Use hard coded number of clipping planes, copying the 4th to 5 & 6 when only 4 are used. --- source/blender/draw/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/draw/CMakeLists.txt') diff --git a/source/blender/draw/CMakeLists.txt b/source/blender/draw/CMakeLists.txt index 8ba9058f210..a305d18a592 100644 --- a/source/blender/draw/CMakeLists.txt +++ b/source/blender/draw/CMakeLists.txt @@ -249,6 +249,7 @@ data_to_c_simple(modes/shaders/common_hair_refine_vert.glsl SRC) data_to_c_simple(modes/shaders/common_view_lib.glsl SRC) data_to_c_simple(modes/shaders/common_fxaa_lib.glsl SRC) data_to_c_simple(modes/shaders/common_fullscreen_vert.glsl SRC) +data_to_c_simple(modes/shaders/common_world_clip_lib.glsl SRC) data_to_c_simple(modes/shaders/animviz_mpath_lines_vert.glsl SRC) data_to_c_simple(modes/shaders/animviz_mpath_lines_geom.glsl SRC) data_to_c_simple(modes/shaders/animviz_mpath_points_vert.glsl SRC) -- cgit v1.2.3