diff --git a/source/blender/gpu/intern/gpu_context.cc b/source/blender/gpu/intern/gpu_context.cc index 3b25be58d05..3e5df9a6d4a 100644 --- a/source/blender/gpu/intern/gpu_context.cc +++ b/source/blender/gpu/intern/gpu_context.cc @@ -564,6 +564,7 @@ GPUSecondaryContext::GPUSecondaryContext() GHOST_TSuccess success = GHOST_ReleaseGPUContext( reinterpret_cast(ghost_context_)); BLI_assert(success); + UNUSED_VARS_NDEBUG(success); /* Restore the main thread contexts. * (required as the above context creation also makes it active). */