diff --git a/GPU/Software/Rasterizer.cpp b/GPU/Software/Rasterizer.cpp index 264cf2c227..05da74d41a 100644 --- a/GPU/Software/Rasterizer.cpp +++ b/GPU/Software/Rasterizer.cpp @@ -1526,6 +1526,10 @@ bool GetCurrentStencilbuffer(GPUDebugBuffer &buffer) bool GetCurrentTexture(GPUDebugBuffer &buffer) { + if (!gstate.isTextureMapEnabled()) { + return false; + } + int w = gstate.getTextureWidth(0); int h = gstate.getTextureHeight(0); buffer.Allocate(w, h, GE_FORMAT_8888, false);