1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-05 06:33:52 +00:00

Actually set current texture pointer.

This commit is contained in:
Bartosz Taudul 2019-06-06 23:10:01 +02:00
parent 6b2741ccdb
commit 129155946b
2 changed files with 3 additions and 1 deletions

View File

@ -1275,6 +1275,7 @@ void View::DrawFrames()
if( fi != m_frameTexturePtr )
{
UpdateTexture( m_frameTexture, fi->ptr, fi->w, fi->h );
m_frameTexturePtr = fi;
}
ImGui::Separator();
ImGui::Image( m_frameTexture, ImVec2( fi->w, fi->h ), ImVec2( 0, 1 ), ImVec2( 1, 0 ) );
@ -1661,6 +1662,7 @@ bool View::DrawZoneFrames( const FrameData& frames )
if( fi != m_frameTexturePtr )
{
UpdateTexture( m_frameTexture, fi->ptr, fi->w, fi->h );
m_frameTexturePtr = fi;
}
ImGui::Separator();
ImGui::Image( m_frameTexture, ImVec2( fi->w, fi->h ), ImVec2( 0, 1 ), ImVec2( 1, 0 ) );

View File

@ -328,7 +328,7 @@ private:
std::thread m_saveThread;
void* m_frameTexture;
void* m_frameTexturePtr = nullptr;
const void* m_frameTexturePtr = nullptr;
struct FindZone {
enum : uint64_t { Unselected = std::numeric_limits<uint64_t>::max() - 1 };