diff options
author | Feng Chen <vonchenplus@gmail.com> | 2023-01-11 04:10:48 +0100 |
---|---|---|
committer | Feng Chen <vonchenplus@gmail.com> | 2023-01-16 03:27:57 +0100 |
commit | 9fc7ca1731862354ef70bfaf34d2c807a904a27b (patch) | |
tree | 5bdfbefc345364d74798de659225246319e56b1b /src/video_core/engines/draw_manager.cpp | |
parent | video_core: Implement opengl/vulkan draw_texture (diff) | |
download | yuzu-9fc7ca1731862354ef70bfaf34d2c807a904a27b.tar yuzu-9fc7ca1731862354ef70bfaf34d2c807a904a27b.tar.gz yuzu-9fc7ca1731862354ef70bfaf34d2c807a904a27b.tar.bz2 yuzu-9fc7ca1731862354ef70bfaf34d2c807a904a27b.tar.lz yuzu-9fc7ca1731862354ef70bfaf34d2c807a904a27b.tar.xz yuzu-9fc7ca1731862354ef70bfaf34d2c807a904a27b.tar.zst yuzu-9fc7ca1731862354ef70bfaf34d2c807a904a27b.zip |
Diffstat (limited to 'src/video_core/engines/draw_manager.cpp')
-rw-r--r-- | src/video_core/engines/draw_manager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/engines/draw_manager.cpp b/src/video_core/engines/draw_manager.cpp index 2685481f9..1d22d25f1 100644 --- a/src/video_core/engines/draw_manager.cpp +++ b/src/video_core/engines/draw_manager.cpp @@ -199,10 +199,10 @@ void DrawManager::DrawTexture() { draw_texture_state.src_x0 = static_cast<float>(regs.draw_texture.src_x0) / 4096.f; draw_texture_state.src_y0 = static_cast<float>(regs.draw_texture.src_y0) / 4096.f; draw_texture_state.src_x1 = - (static_cast<float>(regs.draw_texture.dx_du) / 4294967295.f) * dst_width + + (static_cast<float>(regs.draw_texture.dx_du) / 4294967296.f) * dst_width + draw_texture_state.src_x0; draw_texture_state.src_y1 = - (static_cast<float>(regs.draw_texture.dy_dv) / 4294967295.f) * dst_height + + (static_cast<float>(regs.draw_texture.dy_dv) / 4294967296.f) * dst_height + draw_texture_state.src_y0; draw_texture_state.src_sampler = regs.draw_texture.src_sampler; draw_texture_state.src_texture = regs.draw_texture.src_texture; |