Use a DX9-compatible method to pass texwidth and height. the effect doesn't work on DX9 yet though.

This commit is contained in:
Henrik Rydgård 2022-08-20 16:57:02 +02:00
parent ca24f1b9aa
commit 9cc8cfaa08
3 changed files with 25 additions and 6 deletions

View file

@ -2566,7 +2566,7 @@ void FramebufferManagerCommon::BlitUsingRaster(
Draw::Viewport vp{ 0.0f, 0.0f, (float)dest->Width(), (float)dest->Height(), 0.0f, 1.0f };
draw_->SetViewports(1, &vp);
draw_->SetScissorRect(0, 0, (int)dest->Width(), (int)dest->Height());
DrawStrip2D(nullptr, vtx, 4, linearFilter, shader);
DrawStrip2D(nullptr, vtx, 4, linearFilter, shader, src->Width(), src->Height());
gstate_c.Dirty(DIRTY_BLEND_STATE | DIRTY_DEPTHSTENCIL_STATE | DIRTY_RASTER_STATE | DIRTY_VIEWPORTSCISSOR_STATE | DIRTY_VERTEXSHADER_STATE | DIRTY_FRAGMENTSHADER_STATE);
}