Browse Source

Update gfxGLCircularVolatileBuffer.h

fix gl volatile buffer
marauder2k7 1 month ago
parent
commit
d45c3794a5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h

+ 2 - 0
Engine/source/gfx/gl/gfxGLCircularVolatileBuffer.h

@@ -224,6 +224,8 @@ public:
       if (GFXGL->mCapabilities.bufferStorage)
       {
          outPtr = static_cast<U8*>(mBufferPtr) + mBufferFreePos;
+         _getBufferData.mOffset = outOffset;
+         _getBufferData.mSize = size;
       }
       else if (GFXGL->glUseMap())
       {