2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

gl_rasterizer: Make floating-point literal a float

Gets rid of an unnecessary expansion from float to double.
This commit is contained in:
Lioncash 2020-11-20 04:24:30 -05:00
parent 92344da20c
commit 8469b76630

View file

@ -1156,7 +1156,7 @@ void RasterizerOpenGL::SyncViewport() {
flags[Dirty::ClipControl] = false; flags[Dirty::ClipControl] = false;
bool flip_y = false; bool flip_y = false;
if (regs.viewport_transform[0].scale_y < 0.0) { if (regs.viewport_transform[0].scale_y < 0.0f) {
flip_y = !flip_y; flip_y = !flip_y;
} }
if (regs.screen_y_control.y_negate != 0) { if (regs.screen_y_control.y_negate != 0) {