From 5037dd8abdf9335e998141336d4e15f81580c491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Thu, 19 Jul 2018 15:48:13 +0200 Subject: GPU: Add GC to FBOs and UBOs and centralize all GCs GPUFrameBuffers were being free when no context was attached or in the wrong gl context. This make sure this does not happen again. You can now safely free any gl resource from any thread (well as long as it's not used anymore!). --- source/blender/gpu/intern/gpu_batch_private.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'source/blender/gpu/intern/gpu_batch_private.h') diff --git a/source/blender/gpu/intern/gpu_batch_private.h b/source/blender/gpu/intern/gpu_batch_private.h index 51040ff751a..3a05e243065 100644 --- a/source/blender/gpu/intern/gpu_batch_private.h +++ b/source/blender/gpu/intern/gpu_batch_private.h @@ -43,9 +43,6 @@ extern "C" { void gpu_batch_remove_interface_ref(GPUBatch *batch, const GPUShaderInterface *interface); -void gpu_context_add_batch(GPUContext *ctx, GPUBatch *batch); -void gpu_context_remove_batch(GPUContext *ctx, GPUBatch *batch); - #ifdef __cplusplus } #endif -- cgit v1.2.3