blob: 99705adae25c8c9f4e60df7a622066e49752155b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff -Naur a/source/blender/gpu/GPU_vertex_buffer.h b/source/blender/gpu/GPU_vertex_buffer.h
--- a/source/blender/gpu/GPU_vertex_buffer.h 2020-11-26 16:36:36.226883721 +1100
+++ b/source/blender/gpu/GPU_vertex_buffer.h 2020-11-26 16:38:08.691212985 +1100
@@ -118,7 +118,10 @@
{
unsigned char *data = a->data;
a->data += a->stride;
+#ifdef DEBUG
+ /* Assert only compiles if _data_end exists */
BLI_assert(data < a->_data_end);
+#endif
return (void *)data;
}
|