[Bf-blender-cvs] [595b3022317] master: Cleanup: Remove unused method BatchUpdater::discard_batch.

Jeroen Bakker noreply at git.blender.org
Fri Dec 9 16:11:22 CET 2022


Commit: 595b30223175cb691816366557cda2bdbecfb11c
Author: Jeroen Bakker
Date:   Fri Dec 9 12:28:05 2022 +0100
Branches: master
https://developer.blender.org/rB595b30223175cb691816366557cda2bdbecfb11c

Cleanup: Remove unused method BatchUpdater::discard_batch.

Batch discarding is done by the owner of the batch.

===================================================================

M	source/blender/draw/engines/image/image_batches.hh

===================================================================

diff --git a/source/blender/draw/engines/image/image_batches.hh b/source/blender/draw/engines/image/image_batches.hh
index 34dca043ccc..1d7e7a0b548 100644
--- a/source/blender/draw/engines/image/image_batches.hh
+++ b/source/blender/draw/engines/image/image_batches.hh
@@ -31,11 +31,6 @@ class BatchUpdater {
     init_batch();
   }
 
-  void discard_batch()
-  {
-    GPU_BATCH_DISCARD_SAFE(info.batch);
-  }
-
  private:
   void ensure_clear_batch()
   {



More information about the Bf-blender-cvs mailing list