diff --git a/Windows/GEDebugger/GEDebugger.cpp b/Windows/GEDebugger/GEDebugger.cpp index 8a7df0c1ab..e04d18a42e 100644 --- a/Windows/GEDebugger/GEDebugger.cpp +++ b/Windows/GEDebugger/GEDebugger.cpp @@ -282,7 +282,9 @@ void CGEDebugger::PreviewFramebufHover(int x, int y) { wchar_t desc[256] = {0}; - if (x < 0 || y < 0) { + if (!frameWindow->HasTex()) { + desc[0] = 0; + } else if (x < 0 || y < 0) { // This means they left the area. GPUgstate state = {0}; if (gpuDebug != nullptr) { @@ -412,7 +414,9 @@ void CGEDebugger::PreviewTextureHover(int x, int y) { wchar_t desc[256] = {0}; - if (x < 0 || y < 0) { + if (!texWindow->HasTex()) { + desc[0] = 0; + } else if (x < 0 || y < 0) { // This means they left the area. GPUgstate state = {0}; if (gpuDebug != nullptr) { diff --git a/Windows/GEDebugger/SimpleGLWindow.h b/Windows/GEDebugger/SimpleGLWindow.h index ba4b4f6492..f1802c511f 100644 --- a/Windows/GEDebugger/SimpleGLWindow.h +++ b/Windows/GEDebugger/SimpleGLWindow.h @@ -83,6 +83,10 @@ struct SimpleGLWindow { return h_; } + bool HasTex() { + return tw_ > 0 && th_ > 0; + } + int TexWidth() { return tw_; }