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
path: root/source
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2016-10-13 19:24:01 +0300
committerMike Erwin <significant.bit@gmail.com>2016-10-13 19:24:01 +0300
commit14d054929577e1f3a5d32dbc2faffffbfdea15b3 (patch)
tree5f51acf568e33c299e8e3ad7f992f9c51ab28cbe /source
parent916e631fc905182734d65f79c5a64a1f57abde22 (diff)
Gawain: fix build when TRUST_NO_ONE is disabled
Diffstat (limited to 'source')
-rw-r--r--source/blender/gpu/gawain/element.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/gpu/gawain/element.c b/source/blender/gpu/gawain/element.c
index 385705c71c6..953042ba110 100644
--- a/source/blender/gpu/gawain/element.c
+++ b/source/blender/gpu/gawain/element.c
@@ -23,7 +23,9 @@ unsigned ElementList_size(const ElementList* elem)
case GL_UNSIGNED_SHORT: return elem->index_ct * sizeof(GLushort);
case GL_UNSIGNED_INT: return elem->index_ct * sizeof(GLuint);
default:
+ #if TRUST_NO_ONE
assert(false);
+ #endif
return 0;
}
@@ -69,7 +71,10 @@ void ElementListBuilder_init(ElementListBuilder* builder, GLenum prim_type, unsi
verts_per_prim = 3;
break;
default:
+#if TRUST_NO_ONE
assert(false);
+#endif
+ return;
}
builder->max_allowed_index = vertex_ct - 1;