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:
parent
6b2741ccdb
commit
129155946b
@ -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 ) );
|
||||
|
@ -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 };
|
||||
|
Loading…
x
Reference in New Issue
Block a user