Skip to content

Commit b1b235a

Browse files
committed
Merge pull request #1596 from Azaezel/FrameMallocMallet
removes FrameAllocatorMarker usage from GL side _fastTextureLoad
2 parents efecbca + 27afd2d commit b1b235a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Engine/source/gfx/gl/gfxGLTextureManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ static void _fastTextureLoad(GFXGLTextureObject* texture, GBitmap* pDL)
235235
if(pDL->getFormat() == GFXFormatR8G8B8A8 || pDL->getFormat() == GFXFormatR8G8B8X8)
236236
{
237237
PROFILE_SCOPE(Swizzle32_Upload);
238-
FrameAllocatorMarker mem;
239-
U8* pboMemory = (U8*)mem.alloc(bufSize);
238+
U8* pboMemory = (U8*)dMalloc(bufSize);
240239
GFX->getDeviceSwizzle32()->ToBuffer(pboMemory, pDL->getBits(0), bufSize);
241240
glBufferSubData(GL_PIXEL_UNPACK_BUFFER, 0, bufSize, pboMemory );
241+
dFree(pboMemory);
242242
}
243243
else
244244
{

0 commit comments

Comments
 (0)