mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix a GetPointer() in softgpu when debugging.
Should just bail without a texture bound.
This commit is contained in:
parent
281ff6ce2a
commit
233f13bb8e
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue