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:
Henrik Rydgård 2023-04-30 10:06:43 +02:00
parent 6459f750e2
commit 3d477003c4

View File

@ -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 };