Fix: Compiling shaders without opensubdiv
When blender is compiled with `WITH_OPENSUBDIV=Off` Blender just works fine. However when compiling all the static shaders the OpenSubDiv shaders are also compiled and fail as they rely on OpenSubDiv. This PR fixes this by only adding the shaders when OpenSubDiv is available. This issue could be reproduced using the `--debug-gpu-compile-shaders` option or running GPU test cases. Pull Request: https://projects.blender.org/blender/blender/pulls/135285
This commit is contained in:
@@ -118,7 +118,9 @@
|
||||
#include "draw_hair_refine_info.hh"
|
||||
#include "draw_object_infos_info.hh"
|
||||
#include "draw_view_info.hh"
|
||||
#include "subdiv_info.hh"
|
||||
#ifdef WITH_OPENSUBDIV
|
||||
# include "subdiv_info.hh"
|
||||
#endif
|
||||
|
||||
/* EEVEE engine. */
|
||||
#include "eevee_ambient_occlusion_info.hh"
|
||||
|
||||
Reference in New Issue
Block a user