Skip to content

Commit

Permalink
Merge pull request #1596 from Azaezel/FrameMallocMallet
Browse files Browse the repository at this point in the history
removes FrameAllocatorMarker usage from GL side _fastTextureLoad
  • Loading branch information
Areloch committed Jun 8, 2016
2 parents efecbca + 27afd2d commit b1b235a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Engine/source/gfx/gl/gfxGLTextureManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit b1b235a

Please sign in to comment.