From fbe506916840543ed064958096c615748986e10b Mon Sep 17 00:00:00 2001 From: ikits Date: Sun, 1 Feb 2004 21:34:09 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@210 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/src/glewinfo_post.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auto/src/glewinfo_post.c b/auto/src/glewinfo_post.c index f6079c7..69850d7 100644 --- a/auto/src/glewinfo_post.c +++ b/auto/src/glewinfo_post.c @@ -46,7 +46,8 @@ int main (int argc, char** argv) #ifdef _WIN32 fprintf(f, "Reporting capabilities of PixelFormat %d\n", visual); #else - fprintf(f, "Reporting capabilities of Visual %d\n", visual); + fprintf(f, "Reporting capabilities of Display %s, Visual %d\n", + display == NULL ? getenv("DISPLAY") : display, visual); #endif fprintf(f, "Running on a %s from %s\n", glGetString(GL_RENDERER), glGetString(GL_VENDOR)); @@ -205,6 +206,7 @@ GLboolean glewCreateContext (const char* display, int* visual) /* choose visual */ vi = glXChooseVisual(dpy, DefaultScreen(dpy), attrib); if (NULL == vi) return GL_TRUE; + *visual = vi->visualid; /* create context */ ctx = glXCreateContext(dpy, vi, None, True); if (NULL == ctx) return GL_TRUE;