Shut up compiler
This commit is contained in:
parent
7fa782dfd5
commit
bd54b96034
|
@ -1205,15 +1205,15 @@ xglGetString (GLenum name)
|
||||||
case GL_VERSION:
|
case GL_VERSION:
|
||||||
if (!cctx->versionString)
|
if (!cctx->versionString)
|
||||||
{
|
{
|
||||||
static const char *version = "1.2 (%s)";
|
static char *version = "1.2 (%s)";
|
||||||
const char *nativeVersion = glGetString (GL_VERSION);
|
char *nativeVersion = (char *) glGetString (GL_VERSION);
|
||||||
|
|
||||||
cctx->versionString = xalloc (strlen (version) +
|
cctx->versionString = xalloc (strlen (version) +
|
||||||
strlen (nativeVersion));
|
strlen (nativeVersion));
|
||||||
if (cctx->versionString)
|
if (cctx->versionString)
|
||||||
sprintf (cctx->versionString, version, nativeVersion);
|
sprintf (cctx->versionString, version, nativeVersion);
|
||||||
}
|
}
|
||||||
return cctx->versionString;
|
return (GLubyte *) cctx->versionString;
|
||||||
default:
|
default:
|
||||||
return glGetString (name);
|
return glGetString (name);
|
||||||
}
|
}
|
||||||
|
@ -3447,7 +3447,7 @@ xglInitExtensions (xglGLContextPtr pContext)
|
||||||
|
|
||||||
pContext->glRenderTableEXT = __glNoOpRenderTableEXT;
|
pContext->glRenderTableEXT = __glNoOpRenderTableEXT;
|
||||||
|
|
||||||
extensions = glGetString (GL_EXTENSIONS);
|
extensions = (const char *) glGetString (GL_EXTENSIONS);
|
||||||
|
|
||||||
if (strstr (extensions, "GL_ARB_multitexture"))
|
if (strstr (extensions, "GL_ARB_multitexture"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue