mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-18 08:14:22 +00:00
Change misleading etc1buf variable to texbuf.
This commit is contained in:
@@ -2335,12 +2335,12 @@ void Profiler::CompressWorker()
|
||||
const auto w = fi->w;
|
||||
const auto h = fi->h;
|
||||
const auto csz = size_t( w * h / 2 );
|
||||
auto etc1buf = (char*)tracy_malloc( csz );
|
||||
CompressImageDxt1( (const char*)fi->image, etc1buf, w, h );
|
||||
auto texbuf = (char*)tracy_malloc( csz );
|
||||
CompressImageDxt1( (const char*)fi->image, texbuf, w, h );
|
||||
tracy_free( fi->image );
|
||||
|
||||
TracyLfqPrepare( QueueType::FrameImage );
|
||||
MemWrite( &item->frameImageFat.image, (uint64_t)etc1buf );
|
||||
MemWrite( &item->frameImageFat.image, (uint64_t)texbuf );
|
||||
MemWrite( &item->frameImageFat.frame, fi->frame );
|
||||
MemWrite( &item->frameImageFat.w, w );
|
||||
MemWrite( &item->frameImageFat.h, h );
|
||||
|
||||
Reference in New Issue
Block a user