Przeglądaj źródła

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

MelvMay-GG 13 lat temu
rodzic
commit
c08572bb35
1 zmienionych plików z 3 dodań i 0 usunięć
  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 )
         return;
 
+    // Set batch culling.
+    mBatchCulling = batchCulling;
+
     // Create/destroy sprite batch query appropriately.
     if ( mBatchCulling )
         createSpriteBatchQuery();