]> git.sesse.net Git - movit/commitdiff
Disable OpenGL dithering, just to be on the safe side.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 19 Jan 2014 22:54:49 +0000 (23:54 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 19 Jan 2014 22:54:49 +0000 (23:54 +0100)
I don't actually think any modern OpenGL implementations actually
heed this flag for 8-bit rendering, but it's fine to be on the safe
side nevertheless.

init.cpp

index 396cd8b68106d5855e88ff6f67ee46f6d982f9b3..aca85b9d404f152b8971230612c696dbc747a11e 100644 (file)
--- a/init.cpp
+++ b/init.cpp
@@ -289,6 +289,7 @@ void init_movit(const std::string& data_directory, MovitDebugLevel debug_level)
        // geez 
        glPixelStorei(GL_PACK_ALIGNMENT, 1);
        glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
+       glDisable(GL_DITHER);
 
        measure_texel_subpixel_precision();
        measure_roundoff_problems();