Permalink
Browse files

Buildfix again. Should fix #10046 this time.

  • Loading branch information...
hrydgard committed Nov 5, 2017
1 parent 5d0bd85 commit fc60a2692c8082e2589e0e9b29ca200da05ce5cd
Showing with 2 additions and 2 deletions.
  1. +2 −2 GPU/Common/FramebufferCommon.cpp
@@ -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);

0 comments on commit fc60a26

Please sign in to comment.