From: Michal Krol Date: Fri, 20 Mar 2009 15:13:39 +0000 (+0100) Subject: progs/wgl: Make context current to get GL_RENDERER string. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e8aa5a10185623a820364141b756d128a1171919;p=mesa.git progs/wgl: Make context current to get GL_RENDERER string. --- diff --git a/progs/wgl/wglthreads/wglthreads.c b/progs/wgl/wglthreads/wglthreads.c index 32f3e45edf5..9ca7f025dc3 100644 --- a/progs/wgl/wglthreads/wglthreads.c +++ b/progs/wgl/wglthreads/wglthreads.c @@ -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);