progs/wgl: Make context current to get GL_RENDERER string.
authorMichal Krol <michal@vmware.com>
Fri, 20 Mar 2009 15:13:39 +0000 (16:13 +0100)
committerMichal Krol <michal@vmware.com>
Fri, 20 Mar 2009 15:13:39 +0000 (16:13 +0100)
progs/wgl/wglthreads/wglthreads.c

index 32f3e45edf57d78a97a074b2b847cb51a4a0d496..9ca7f025dc3a0e1e097b4b23bc05dbfe847cc779 100644 (file)
@@ -483,7 +483,9 @@ create_window(struct winthread *wt, HGLRC shareCtx)
    wt->WinHeight = height;
    wt->NewSize = GL_TRUE;
 
+   wglMakeCurrent(hdc, ctx);
    printf("wglthreads: %d: GL_RENDERER = %s\n", wt->Index, (char *) glGetString(GL_RENDERER));
+   wglMakeCurrent(NULL, NULL);
 
    if (Texture/* && wt->Index == 0*/) {
       MakeNewTexture(wt);