diff --git a/Common/Vulkan/VulkanMemory.cpp b/Common/Vulkan/VulkanMemory.cpp index 1e7929202e..4107089463 100644 --- a/Common/Vulkan/VulkanMemory.cpp +++ b/Common/Vulkan/VulkanMemory.cpp @@ -135,14 +135,14 @@ size_t VulkanPushBuffer::GetTotalSize() const { } void VulkanPushBuffer::Map() { - assert(!writePtr_); + _dbg_assert_(G3D, !writePtr_); VkResult res = vkMapMemory(device_, buffers_[buf_].deviceMemory, 0, size_, 0, (void **)(&writePtr_)); - assert(writePtr_); + _dbg_assert_(G3D, writePtr_); assert(VK_SUCCESS == res); } void VulkanPushBuffer::Unmap() { - assert(writePtr_); + _dbg_assert_(G3D, writePtr_ != 0); /* // Should not need this since we use coherent memory. VkMappedMemoryRange range{ VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE }; @@ -366,10 +366,7 @@ void VulkanDeviceAllocator::ExecuteFree(FreeInfo *userdata) { } // Wrong deviceMemory even? Maybe it was already decimated, but that means a double-free. - if (!found) { - Crash(); - } - + _assert_msg_(G3D, found, "ExecuteFree: Block not found (offset %d)", (int)offset); delete userdata; } diff --git a/GPU/GLES/TextureCacheGLES.cpp b/GPU/GLES/TextureCacheGLES.cpp index 6aa92b3f5e..d3efe107ca 100644 --- a/GPU/GLES/TextureCacheGLES.cpp +++ b/GPU/GLES/TextureCacheGLES.cpp @@ -441,6 +441,8 @@ void TextureCacheGLES::ApplyTextureFramebuffer(TexCacheEntry *entry, VirtualFram draw_->BindFramebufferAsRenderTarget(depalFBO, { Draw::RPAction::DONT_CARE, Draw::RPAction::DONT_CARE, Draw::RPAction::DONT_CARE }); shaderManager_->DirtyLastShader(); + render_->SetScissor(GLRect2D{ 0, 0, (uint32_t)framebuffer->renderWidth, (uint32_t)framebuffer->renderHeight }); + render_->SetViewport(GLRViewport{ 0.0f, 0.0f, (float)framebuffer->renderWidth, (float)framebuffer->renderHeight, 0.0f, 1.0f }); TextureShaderApplier shaderApply(depal, framebuffer->bufferWidth, framebuffer->bufferHeight, framebuffer->renderWidth, framebuffer->renderHeight); shaderApply.ApplyBounds(gstate_c.vertBounds, gstate_c.curTextureXOffset, gstate_c.curTextureYOffset); shaderApply.Use(render_, drawEngine_, shadeInputLayout_);