diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-20 14:35:08 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-07-20 14:35:08 +0300 |
commit | 4a79b46b9c7a7800e7e333163e6e4d3f30285d28 (patch) | |
tree | 01dd594cc056827f2308bd35c95422902ac240d5 /source/blender/gpu/intern/gpu_context.cpp | |
parent | 244b825ccd563672516b985348361b7a311e0f84 (diff) |
Fix build error with release + debug info build.
Diffstat (limited to 'source/blender/gpu/intern/gpu_context.cpp')
-rw-r--r-- | source/blender/gpu/intern/gpu_context.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |