diff options
| author | 2023-01-11 11:10:48 +0800 | |
|---|---|---|
| committer | 2023-01-16 10:27:57 +0800 | |
| commit | 9fc7ca1731862354ef70bfaf34d2c807a904a27b (patch) | |
| tree | 5bdfbefc345364d74798de659225246319e56b1b /src/video_core/engines | |
| parent | video_core: Implement opengl/vulkan draw_texture (diff) | |
| download | yuzu-9fc7ca1731862354ef70bfaf34d2c807a904a27b.tar.gz yuzu-9fc7ca1731862354ef70bfaf34d2c807a904a27b.tar.xz yuzu-9fc7ca1731862354ef70bfaf34d2c807a904a27b.zip | |
Address feedback
Diffstat (limited to 'src/video_core/engines')
| -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() { | |||
| 199 | draw_texture_state.src_x0 = static_cast<float>(regs.draw_texture.src_x0) / 4096.f; | 199 | draw_texture_state.src_x0 = static_cast<float>(regs.draw_texture.src_x0) / 4096.f; |
| 200 | draw_texture_state.src_y0 = static_cast<float>(regs.draw_texture.src_y0) / 4096.f; | 200 | draw_texture_state.src_y0 = static_cast<float>(regs.draw_texture.src_y0) / 4096.f; |
| 201 | draw_texture_state.src_x1 = | 201 | draw_texture_state.src_x1 = |
| 202 | (static_cast<float>(regs.draw_texture.dx_du) / 4294967295.f) * dst_width + | 202 | (static_cast<float>(regs.draw_texture.dx_du) / 4294967296.f) * dst_width + |
| 203 | draw_texture_state.src_x0; | 203 | draw_texture_state.src_x0; |
| 204 | draw_texture_state.src_y1 = | 204 | draw_texture_state.src_y1 = |
| 205 | (static_cast<float>(regs.draw_texture.dy_dv) / 4294967295.f) * dst_height + | 205 | (static_cast<float>(regs.draw_texture.dy_dv) / 4294967296.f) * dst_height + |
| 206 | draw_texture_state.src_y0; | 206 | draw_texture_state.src_y0; |
| 207 | draw_texture_state.src_sampler = regs.draw_texture.src_sampler; | 207 | draw_texture_state.src_sampler = regs.draw_texture.src_sampler; |
| 208 | draw_texture_state.src_texture = regs.draw_texture.src_texture; | 208 | draw_texture_state.src_texture = regs.draw_texture.src_texture; |