Fix a GetPointer() in softgpu when debugging.

Should just bail without a texture bound.
This commit is contained in:
Unknown W. Brackets committed 2014-05-11 10:58:33 -07:00
1 parent 281ff6ce2a
commit 233f13bb8e
1 file changed
+4
+4
View File
@@ -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);