From 740c999c19f7353ba1ccf2344ddee5640c02cce9 Mon Sep 17 00:00:00 2001 From: Anis Date: Thu, 25 Feb 2016 15:26:52 +0100 Subject: [PATCH] compile fix --- Engine/source/gfx/gl/gfxGLDevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Engine/source/gfx/gl/gfxGLDevice.cpp b/Engine/source/gfx/gl/gfxGLDevice.cpp index cb5ead912..01bbd02ea 100644 --- a/Engine/source/gfx/gl/gfxGLDevice.cpp +++ b/Engine/source/gfx/gl/gfxGLDevice.cpp @@ -377,7 +377,8 @@ GFXVertexBuffer *GFXGLDevice::allocVertexBuffer( U32 numVerts, GFXPrimitiveBuffer *GFXGLDevice::allocPrimitiveBuffer( U32 numIndices, U32 numPrimitives, GFXBufferType bufferType, void* data ) { - GFXPrimitiveBuffer* buf + GFXPrimitiveBuffer* buf; + if(bufferType == GFXBufferTypeVolatile) { buf = findVolatilePBO(numIndices, numPrimitives); -- 2.11.4.GIT