Browse Source

Merge pull request #1596 from Azaezel/FrameMallocMallet

removes FrameAllocatorMarker usage from GL side _fastTextureLoad
Areloch 9 năm trước cách đây
mục cha
commit
b1b235a4c3
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      Engine/source/gfx/gl/gfxGLTextureManager.cpp

+ 2 - 2
Engine/source/gfx/gl/gfxGLTextureManager.cpp

@@ -235,10 +235,10 @@ static void _fastTextureLoad(GFXGLTextureObject* texture, GBitmap* pDL)
    if(pDL->getFormat() == GFXFormatR8G8B8A8 || pDL->getFormat() == GFXFormatR8G8B8X8)
    {
       PROFILE_SCOPE(Swizzle32_Upload);
-      FrameAllocatorMarker mem;
-      U8* pboMemory = (U8*)mem.alloc(bufSize);
+      U8* pboMemory = (U8*)dMalloc(bufSize);
       GFX->getDeviceSwizzle32()->ToBuffer(pboMemory, pDL->getBits(0), bufSize);
       glBufferSubData(GL_PIXEL_UNPACK_BUFFER, 0, bufSize, pboMemory );
+      dFree(pboMemory);
    }
    else
    {