diff options
author | Mike Erwin <significant.bit@gmail.com> | 2017-03-17 06:51:18 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2017-03-17 06:51:18 +0300 |
commit | c669bf126c5dd82d84e2e8d96cf12cef31d17fb6 (patch) | |
tree | 72f7ac34335fa54076856f443f2768a0f9c58c8a /intern | |
parent | 4452bea2f170ec7fe48c223c8c499f1eb9b5356c (diff) |
Gawain: fix compiler warning
This function is only used when strict run-time checks are enabled.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/gawain/src/immediate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/gawain/src/immediate.c b/intern/gawain/src/immediate.c index f52e9271fe5..dc7c1732a0c 100644 --- a/intern/gawain/src/immediate.c +++ b/intern/gawain/src/immediate.c @@ -144,6 +144,7 @@ void immUnbindProgram(void) imm.bound_program = 0; } +#if TRUST_NO_ONE static bool vertex_count_makes_sense_for_primitive(unsigned vertex_ct, PrimitiveType prim_type) { // does vertex_ct make sense for this primitive type? @@ -172,6 +173,7 @@ static bool vertex_count_makes_sense_for_primitive(unsigned vertex_ct, Primitive return false; } } +#endif void immBegin(PrimitiveType prim_type, unsigned vertex_ct) { |