Buildfix again. Should fix #10046 this time.

This commit is contained in:
Henrik Rydgård 2017-11-05 13:44:23 +01:00
parent 5d0bd85a70
commit fc60a2692c

View File

@ -307,10 +307,10 @@ void GetFramebufferHeuristicInputs(FramebufferHeuristicParams *params, const GPU
// Work around problem in F1 Grand Prix, where it draws in through mode with a bogus viewport.
// We set bad values to 0 which causes the framebuffer size heuristic to rely on the other parameters instead.
if (isnan(vpx) || vpx > 10000000.0f) {
if (std::isnan(vpx) || vpx > 10000000.0f) {
vpx = 0.f;
}
if (isnan(vpy) || vpy > 10000000.0f) {
if (std::isnan(vpy) || vpy > 10000000.0f) {
vpy = 0.f;
}
params->viewportWidth = (int)(fabsf(vpx) * 2.0f);