Skip to content

Commit

Permalink
Merge pull request #763 from Hoikas/fix-max
Browse files Browse the repository at this point in the history
Fix ambiguous type error.
  • Loading branch information
zrax committed Dec 23, 2020
2 parents 00011ce + 80e23e7 commit ceb0878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Tools/MaxConvert/hsMaterialConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3935,7 +3935,7 @@ static BMM_Color_64 ICubeSample(plErrorMsg* const msg, Bitmap *bitmap[6], double
theta = fmod(theta, hsConstants::two_pi<double>);
if (theta < 0)
theta += hsConstants::two_pi<double>;
phi = std::clamp(phi, 0, hsConstants::pi<double>);
phi = std::clamp(phi, 0.0, hsConstants::pi<double>);

Bitmap *map = nil;

Expand Down

0 comments on commit ceb0878

Please sign in to comment.