Skip to content

Commit

Permalink
GS/TC: Remove no longer needed asserts in PreloadTarget.
Browse files Browse the repository at this point in the history
Asserts are no longer needed as we check for width offset and adjust width accordingly using the offset.
  • Loading branch information
lightningterror committed Nov 28, 2024
1 parent 4eae1b7 commit 674fa87
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pcsx2/GS/Renderers/HW/GSTextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2651,11 +2651,6 @@ bool GSTextureCache::PreloadTarget(GIFRegTEX0 TEX0, const GSVector2i& size, cons

GL_INS("RT double buffer copy from FBP 0x%x, %dx%d => %d,%d", t->m_TEX0.TBP0, copy_width, copy_height, 0, dst_offset_scaled_height);

pxAssert(copy_width <= dst->GetTexture()->GetWidth() && copy_height <= dst->GetTexture()->GetHeight() &&
copy_width <= t->GetTexture()->GetWidth() && copy_height <= t->GetTexture()->GetHeight());

pxAssert(dst_offset_scaled_height > 0);

// Clear the dirty first
t->Update();
dst->Update();
Expand Down

0 comments on commit 674fa87

Please sign in to comment.