This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 410ccfac49437639bc0a69e6234ff9301583125c
Author: m4n4t4...@gmail.com 
<m4n4t4...@gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Sun Mar 16 01:12:49 2014 +0000

    All: Fix warning from last commit
---
 MP/code/sdl/sdl_glimp.c | 4 +++-
 SP/code/sdl/sdl_glimp.c | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/MP/code/sdl/sdl_glimp.c b/MP/code/sdl/sdl_glimp.c
index 4ce07b9..1d67082 100644
--- a/MP/code/sdl/sdl_glimp.c
+++ b/MP/code/sdl/sdl_glimp.c
@@ -419,10 +419,12 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, 
qboolean noborder)
                // If not allowing software GL, demand accelerated
                if( !r_allowSoftwareGL->integer )
                {
+                       int value;
+
                        SDL_GL_SetAttribute( SDL_GL_ACCELERATED_VISUAL, 1 );
 
                        //Fall back to allow either if setting attribute failed
-                       if( SDL_GL_GetAttribute( SDL_GL_ACCELERATED_VISUAL, 1 ) 
<  0)
+                       if( SDL_GL_GetAttribute( SDL_GL_ACCELERATED_VISUAL, 
&value ) != 1 )
                                SDL_GL_SetAttribute( SDL_GL_ACCELERATED_VISUAL, 
-1 );
                }
 
diff --git a/SP/code/sdl/sdl_glimp.c b/SP/code/sdl/sdl_glimp.c
index 4ce07b9..1d67082 100644
--- a/SP/code/sdl/sdl_glimp.c
+++ b/SP/code/sdl/sdl_glimp.c
@@ -419,10 +419,12 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, 
qboolean noborder)
                // If not allowing software GL, demand accelerated
                if( !r_allowSoftwareGL->integer )
                {
+                       int value;
+
                        SDL_GL_SetAttribute( SDL_GL_ACCELERATED_VISUAL, 1 );
 
                        //Fall back to allow either if setting attribute failed
-                       if( SDL_GL_GetAttribute( SDL_GL_ACCELERATED_VISUAL, 1 ) 
<  0)
+                       if( SDL_GL_GetAttribute( SDL_GL_ACCELERATED_VISUAL, 
&value ) != 1 )
                                SDL_GL_SetAttribute( SDL_GL_ACCELERATED_VISUAL, 
-1 );
                }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/iortcw.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to