Merge pull request #1663 from Azaezel/rainleak

corrects corruption in precipitation class
This commit is contained in:
Areloch 2016-07-06 20:10:43 -05:00 committed by GitHub
commit 679d94d170
5 changed files with 9 additions and 7 deletions

View file

@ -963,7 +963,7 @@ void Precipitation::initRenderObjects()
// Create a volitile vertex buffer which
// we'll lock and fill every frame.
mRainVB.set(GFX, mMaxVBDrops * 4, GFXBufferTypeVolatile);
mRainVB.set(GFX, mMaxVBDrops * 4, GFXBufferTypeDynamic);
// Init the index buffer for rendering the
// entire or a partially filled vb.