I'm writing a cross-platform application which draws a 2d image read from PNG file using OpenGL. My program works on Linux, Windows and Mac OS X. In Linux and Windows it works fine, but in Mac OS X the image is not drawn pixel-perfect. The image looks a bit blurry and when moving the image with mouse the image gets slightly different blurring artifacts depending on which area of the OpenGL viewport the image is drawn at, i.e. with which transformation matrix.
I use Mavericks and clang++ 5.1.
I don't do any half-pixel shifting as it is not needed with OpenGL for pixel-perfect rendering.
I was thinking that it might be some difference in floating point computations between these 3 platforms, I tried -frounding-math and -ffloat-store compiler flags, but none of them helped.
Did anyone else encountered that problem on Mac OS X?