Parcourir la source

- Fixed SpriteBatch problem when turning-off the batch culling.

MelvMay-GG il y a 12 ans
Parent
commit
c08572bb35
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      engine/source/2d/core/SpriteBatch.cc

+ 3 - 0
engine/source/2d/core/SpriteBatch.cc

@@ -372,6 +372,9 @@ void SpriteBatch::setBatchCulling( const bool batchCulling )
     if ( mBatchCulling == batchCulling )
     if ( mBatchCulling == batchCulling )
         return;
         return;
 
 
+    // Set batch culling.
+    mBatchCulling = batchCulling;
+
     // Create/destroy sprite batch query appropriately.
     // Create/destroy sprite batch query appropriately.
     if ( mBatchCulling )
     if ( mBatchCulling )
         createSpriteBatchQuery();
         createSpriteBatchQuery();