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:
Jeroen Bakker
2025-02-28 09:58:08 +01:00
parent 5b17522b70
commit e866137cc8

View File

@@ -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"