Fix a GetPointer() in softgpu when debugging.

Should just bail without a texture bound.
This commit is contained in:
Unknown W. Brackets 2014-05-11 10:57:04 -07:00
parent 281ff6ce2a
commit 233f13bb8e

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);