From 233f13bb8e4421dfec7ff44f96081be201bb1995 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 11 May 2014 10:57:04 -0700 Subject: [PATCH] Fix a GetPointer() in softgpu when debugging. Should just bail without a texture bound. --- GPU/Software/Rasterizer.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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);