mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-28 10:51:06 +00:00
Fix a GetPointer() in softgpu when debugging.
Should just bail without a texture bound.
This commit is contained in:
parent
281ff6ce2a
commit
233f13bb8e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user