summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/blender/files')
-rw-r--r--media-gfx/blender/files/blender-2.91.0-define-data-end.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/media-gfx/blender/files/blender-2.91.0-define-data-end.patch b/media-gfx/blender/files/blender-2.91.0-define-data-end.patch
new file mode 100644
index 000000000000..99705adae25c
--- /dev/null
+++ b/media-gfx/blender/files/blender-2.91.0-define-data-end.patch
@@ -0,0 +1,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;
+ }
+