Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2021-12-28 11:36:30 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2021-12-28 11:36:30 +0300
commite28222966b5ddceb0714c95283cb20a0f6cfc308 (patch)
tree0efca73e8c2af0374a77e21ecab5cb6bb56164e0 /intern/opensubdiv
parentd25fa3250aae7e22f68579c053c591a8b2682e3c (diff)
Fix compile error when building without OpenSubDiv
Stubs were missing for functions added to opensubdiv_evaluator_capi.h
Diffstat (limited to 'intern/opensubdiv')
-rw-r--r--intern/opensubdiv/stub/opensubdiv_evaluator_stub.cc18
1 files changed, 17 insertions, 1 deletions
diff --git a/intern/opensubdiv/stub/opensubdiv_evaluator_stub.cc b/intern/opensubdiv/stub/opensubdiv_evaluator_stub.cc
index b7c19bf4f9b..bc39326b57d 100644
--- a/intern/opensubdiv/stub/opensubdiv_evaluator_stub.cc
+++ b/intern/opensubdiv/stub/opensubdiv_evaluator_stub.cc
@@ -21,7 +21,9 @@
#include <cstddef>
OpenSubdiv_Evaluator *openSubdiv_createEvaluatorFromTopologyRefiner(
- struct OpenSubdiv_TopologyRefiner * /*topology_refiner*/)
+ struct OpenSubdiv_TopologyRefiner * /*topology_refiner*/,
+ eOpenSubdivEvaluator /*evaluator_type*/,
+ OpenSubdiv_EvaluatorCache * /*evaluator_cache*/)
{
return NULL;
}
@@ -29,3 +31,17 @@ OpenSubdiv_Evaluator *openSubdiv_createEvaluatorFromTopologyRefiner(
void openSubdiv_deleteEvaluator(OpenSubdiv_Evaluator * /*evaluator*/)
{
}
+
+OpenSubdiv_EvaluatorCache *openSubdiv_createEvaluatorCache(eOpenSubdivEvaluator /*evaluator_type*/)
+{
+ return NULL;
+}
+
+void openSubdiv_deleteEvaluatorCache(OpenSubdiv_EvaluatorCache * /*evaluator_cache*/)
+{
+}
+
+const char *openSubdiv_getGLSLPatchBasisSource()
+{
+ return NULL;
+}