summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qcocoaglcontext.mm
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2019-05-23 10:48:28 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2019-05-27 11:52:22 +0200
commitc3571d2922d41617e81fa9e8ae971d08fb9e94af (patch)
tree82eeed0286f2cd4ebb1f5592acee5591c698936c /src/plugins/platforms/cocoa/qcocoaglcontext.mm
parent4df554c652568805424e3fa256380c7310ccac72 (diff)
Correct qfloat16's 1/inf == 0 test
It should have been qfloat16(1)/qfloat16(infinity) in any case. Sadly, that behaves no better than qfloat16(1.f/qfloat16(infinity)), which was promoting the infinity back to float. So retain the check for over-optimization (but make the comment more accurate). This is a follow-up to d441f6bba7b2aaf1e11b95c1ad4c785e6939f6ba. Change-Id: Iec4afe4b04081b0ebfbf98058da606dc3ade07f4 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoaglcontext.mm')
0 files changed, 0 insertions, 0 deletions