[Bf-blender-cvs] [4a79b46b9c7] blender2.8: Fix build error with release + debug info build.
Brecht Van Lommel
noreply at git.blender.org
Fri Jul 20 13:42:11 CEST 2018
Commit: 4a79b46b9c7a7800e7e333163e6e4d3f30285d28
Author: Brecht Van Lommel
Date: Fri Jul 20 13:35:08 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB4a79b46b9c7a7800e7e333163e6e4d3f30285d28
Fix build error with release + debug info build.
===================================================================
M source/blender/gpu/intern/gpu_context.cpp
===================================================================
diff --git a/source/blender/gpu/intern/gpu_context.cpp b/source/blender/gpu/intern/gpu_context.cpp
index 6a42552c2fd..3f2ce958332 100644
--- a/source/blender/gpu/intern/gpu_context.cpp
+++ b/source/blender/gpu/intern/gpu_context.cpp
@@ -151,8 +151,10 @@ void GPU_context_discard(GPUContext *ctx)
BLI_assert(ctx == active_ctx);
BLI_assert(pthread_equal(pthread_self(), ctx->thread));
BLI_assert(ctx->orphaned_vertarray_ids.empty());
+#ifdef DEBUG
/* For now don't allow GPUFrameBuffers to be reuse in another ctx. */
BLI_assert(ctx->framebuffers.empty());
+#endif
/* delete remaining vaos */
while (!ctx->batches.empty()) {
/* this removes the array entry */
More information about the Bf-blender-cvs
mailing list