1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Frame image may need flipping.

This commit is contained in:
Bartosz Taudul
2019-06-12 15:28:32 +02:00
parent 29fd4b1fe9
commit 37d1457b44
5 changed files with 10 additions and 3 deletions
+3 -1
View File
@@ -171,7 +171,7 @@ public:
GetProfiler().m_serialLock.unlock();
}
static tracy_force_inline void SendFrameImage( void* image, uint16_t w, uint16_t h, uint8_t offset )
static tracy_force_inline void SendFrameImage( void* image, uint16_t w, uint16_t h, uint8_t offset, bool flip )
{
#ifdef TRACY_ON_DEMAND
if( !GetProfiler().IsConnected() ) return;
@@ -188,6 +188,8 @@ public:
MemWrite( &item->frameImage.w, w );
MemWrite( &item->frameImage.h, h );
MemWrite( &item->frameImage.offset, offset );
uint8_t _flip = flip;
MemWrite( &item->frameImage.flip, _flip );
tail.store( magic + 1, std::memory_order_release );
}