Browse Source

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

MelvMay-GG 12 years ago
parent
commit
c08572b
1 changed files with 3 additions and 0 deletions
  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();