mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-10 22:31:32 +00:00
By default don't have any pixel selected in texture viewer
This commit is contained in:
1 file changed
+6
@@ -683,6 +683,9 @@ void TextureViewer::RT_PickPixelsAndUpdate(IReplayController *)
|
||||
{
|
||||
PixelValue pickValue, realValue;
|
||||
|
||||
if(m_PickedPoint.x() < 0 || m_PickedPoint.y() < 0)
|
||||
return;
|
||||
|
||||
uint32_t x = (uint32_t)m_PickedPoint.x();
|
||||
uint32_t y = (uint32_t)m_PickedPoint.y();
|
||||
|
||||
@@ -2551,6 +2554,9 @@ void TextureViewer::Reset()
|
||||
{
|
||||
m_CachedTexture = NULL;
|
||||
|
||||
m_PickedPoint.setX(-1);
|
||||
m_PickedPoint.setY(-1);
|
||||
|
||||
memset(&m_TexDisplay, 0, sizeof(m_TexDisplay));
|
||||
m_TexDisplay.backgroundColor =
|
||||
backCol.isValid() ? FloatVector(backCol.redF(), backCol.greenF(), backCol.blueF(), 1.0f)
|
||||
|
||||
Reference in new issue
Block a user