mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix issue where if Break on Load was set, we'd crash once we started running in a few games
This commit is contained in:
parent
6459f750e2
commit
3d477003c4
1 changed files with 5 additions and 0 deletions
|
@ -612,6 +612,11 @@ public:
|
|||
}
|
||||
|
||||
void BindTexture(int slot, GLRTexture *tex) {
|
||||
if (!curRenderStep_ && !tex) {
|
||||
// Likely a pre-emptive bindtexture for D3D11 to avoid hazards. Not necessary.
|
||||
// This can happen in BlitUsingRaster.
|
||||
return;
|
||||
}
|
||||
_dbg_assert_(curRenderStep_ && curRenderStep_->stepType == GLRStepType::RENDER);
|
||||
_dbg_assert_(slot < MAX_GL_TEXTURE_SLOTS);
|
||||
GLRRenderData data{ GLRRenderCommand::BINDTEXTURE };
|
||||
|
|
Loading…
Add table
Reference in a new issue