*** empty log message ***

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@210 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
ikits 2004-02-01 21:34:09 +00:00
parent 0993e68be2
commit fbe5069168

View File

@ -46,7 +46,8 @@ int main (int argc, char** argv)
#ifdef _WIN32 #ifdef _WIN32
fprintf(f, "Reporting capabilities of PixelFormat %d\n", visual); fprintf(f, "Reporting capabilities of PixelFormat %d\n", visual);
#else #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 #endif
fprintf(f, "Running on a %s from %s\n", fprintf(f, "Running on a %s from %s\n",
glGetString(GL_RENDERER), glGetString(GL_VENDOR)); glGetString(GL_RENDERER), glGetString(GL_VENDOR));
@ -205,6 +206,7 @@ GLboolean glewCreateContext (const char* display, int* visual)
/* choose visual */ /* choose visual */
vi = glXChooseVisual(dpy, DefaultScreen(dpy), attrib); vi = glXChooseVisual(dpy, DefaultScreen(dpy), attrib);
if (NULL == vi) return GL_TRUE; if (NULL == vi) return GL_TRUE;
*visual = vi->visualid;
/* create context */ /* create context */
ctx = glXCreateContext(dpy, vi, None, True); ctx = glXCreateContext(dpy, vi, None, True);
if (NULL == ctx) return GL_TRUE; if (NULL == ctx) return GL_TRUE;