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 f7b8d150d10042d8ca1d05aead187aeaf7569bf8
Author: m4n4t4...@gmail.com 
<m4n4t4...@gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Thu Oct 2 09:51:42 2014 +0000

    All: Fix crash when glConfig.extensions_string is too large
---
 MP/code/rend2/tr_extensions.c | 2 +-
 MP/code/sdl/sdl_glimp.c       | 2 +-
 SP/code/rend2/tr_extensions.c | 2 +-
 SP/code/sdl/sdl_glimp.c       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/MP/code/rend2/tr_extensions.c b/MP/code/rend2/tr_extensions.c
index 5c58341..168e1e7 100644
--- a/MP/code/rend2/tr_extensions.c
+++ b/MP/code/rend2/tr_extensions.c
@@ -180,7 +180,7 @@ void (APIENTRY * qglDrawBuffersARB)(GLsizei n, const GLenum 
*bufs);
 
 static qboolean GLimp_HaveExtension(const char *ext)
 {
-       const char *ptr = Q_stristr( glConfig.extensions_string, ext );
+       const char *ptr = Q_stristr( (char *)qglGetString(GL_EXTENSIONS), ext );
        if (ptr == NULL)
                return qfalse;
        ptr += strlen(ext);
diff --git a/MP/code/sdl/sdl_glimp.c b/MP/code/sdl/sdl_glimp.c
index a910d99..2541b1f 100644
--- a/MP/code/sdl/sdl_glimp.c
+++ b/MP/code/sdl/sdl_glimp.c
@@ -576,7 +576,7 @@ static qboolean GLimp_StartDriverAndSetMode(int mode, 
qboolean fullscreen, qbool
 
 static qboolean GLimp_HaveExtension(const char *ext)
 {
-       const char *ptr = Q_stristr( glConfig.extensions_string, ext );
+       const char *ptr = Q_stristr( (char *)qglGetString(GL_EXTENSIONS), ext );
        if (ptr == NULL)
                return qfalse;
        ptr += strlen(ext);
diff --git a/SP/code/rend2/tr_extensions.c b/SP/code/rend2/tr_extensions.c
index 5c58341..168e1e7 100644
--- a/SP/code/rend2/tr_extensions.c
+++ b/SP/code/rend2/tr_extensions.c
@@ -180,7 +180,7 @@ void (APIENTRY * qglDrawBuffersARB)(GLsizei n, const GLenum 
*bufs);
 
 static qboolean GLimp_HaveExtension(const char *ext)
 {
-       const char *ptr = Q_stristr( glConfig.extensions_string, ext );
+       const char *ptr = Q_stristr( (char *)qglGetString(GL_EXTENSIONS), ext );
        if (ptr == NULL)
                return qfalse;
        ptr += strlen(ext);
diff --git a/SP/code/sdl/sdl_glimp.c b/SP/code/sdl/sdl_glimp.c
index a910d99..2541b1f 100644
--- a/SP/code/sdl/sdl_glimp.c
+++ b/SP/code/sdl/sdl_glimp.c
@@ -576,7 +576,7 @@ static qboolean GLimp_StartDriverAndSetMode(int mode, 
qboolean fullscreen, qbool
 
 static qboolean GLimp_HaveExtension(const char *ext)
 {
-       const char *ptr = Q_stristr( glConfig.extensions_string, ext );
+       const char *ptr = Q_stristr( (char *)qglGetString(GL_EXTENSIONS), ext );
        if (ptr == NULL)
                return qfalse;
        ptr += strlen(ext);

-- 
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