Commit 4300f12d authored by idr's avatar idr
Browse files

Warning clean-ups.

parent c9254615
......@@ -815,8 +815,8 @@ extern void _XSend(Display*, const void*, long);
extern void __glXInitializeVisualConfigFromTags( __GLcontextModes *config,
int count, const INT32 *bp, Bool tagged_only, Bool fbconfig_style_tags );
extern char *__glXInternalQueryServerString( Display *dpy, int opcode,
int screen, int name );
extern char * __glXGetStringFromServer( Display * dpy, int opcode,
CARD32 glxCode, CARD32 for_whom, CARD32 name );
extern char *__glXstrdup(const char *str);
......
......@@ -870,8 +870,8 @@ version_from_string( const char * ver,
const GLubyte *glGetString(GLenum name)
{
__GLX_SINGLE_DECLARE_VARIABLES();
xGLXSingleReply reply;
__GLXcontext *gc = __glXGetCurrentContext();
Display *dpy = gc->currentDpy;
GLubyte *s = NULL;
if (!dpy) return 0;
......@@ -902,7 +902,7 @@ const GLubyte *glGetString(GLenum name)
*/
(void) __glXFlushRenderBuffer( gc, gc->pc );
s = __glXGetStringFromServer( dpy, gc->majorOpcode,
s = (GLubyte *) __glXGetStringFromServer( dpy, gc->majorOpcode,
X_GLsop_GetString, gc->currentContextTag,
name );
if (!s) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment