From e8aa5a10185623a820364141b756d128a1171919 Mon Sep 17 00:00:00 2001 From: Michal Krol Date: Fri, 20 Mar 2009 16:13:39 +0100 Subject: progs/wgl: Make context current to get GL_RENDERER string. --- progs/wgl/wglthreads/wglthreads.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'progs') diff --git a/progs/wgl/wglthreads/wglthreads.c b/progs/wgl/wglthreads/wglthreads.c index 32f3e45edf..9ca7f025dc 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); -- cgit v1.2.3