[GPU] Fix uninitialized viewport_top when drawing without a viewport
This commit is contained in:
parent
ff5c5f01e0
commit
cadc31c93f
|
@ -227,6 +227,7 @@ void GetHostViewportInfo(const RegisterFile& regs, float pixel_size_x,
|
|||
ndc_offset_y = 0.0f;
|
||||
}
|
||||
} else {
|
||||
viewport_top = 0.0f;
|
||||
viewport_height = std::min(
|
||||
float(xenos::kTexture2DCubeMaxWidthHeight) * pixel_size_y, y_max);
|
||||
ndc_scale_y = (2.0f * pixel_size_y) / viewport_height;
|
||||
|
|
Loading…
Reference in New Issue