From dbb6f0416c9bd0db0cc3a65074c407bc52b07694 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 20 Nov 2002 01:25:40 +0000 Subject: [PATCH] fix not dithering in 32bpp --- stepmania/src/RageBitmapTexture.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index 7f7bb26870..001813944f 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -24,7 +24,10 @@ #include "SDL_rotozoom.h" #include "SDL_utils.h" #include "SDL_dither.h" +#define NO_SDL_GLEXT +#define __glext_h_ /* try harder to stop glext.h from being forced on us by someone else */ #include "SDL_opengl.h" +#include "glext.h" #include "RageTimer.h" @@ -199,7 +202,7 @@ void RageBitmapTexture::Create() int target = PixFmtMaskNo(fmtTexture); /* Dither only when the target is 16bpp, not when it's 32bpp. */ - if( PixFmtMasks[target][4] /* XXX magic 4 */ == 4) + if( PixFmtMasks[target][4] /* XXX magic 4 */ == 32) m_prefs.bDither = false; if( m_prefs.bStretch )