summaryrefslogtreecommitdiffstats
path: root/progs/wgl
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-03-20 16:13:39 +0100
committerMichal Krol <michal@vmware.com>2009-03-20 16:13:39 +0100
commite8aa5a10185623a820364141b756d128a1171919 (patch)
tree26f2908d8ab03363586791ecddd2a8c2375a81ce /progs/wgl
parent5465f3adf93bd58b528bd6703b2367eb00c78c31 (diff)
progs/wgl: Make context current to get GL_RENDERER string.
Diffstat (limited to 'progs/wgl')
-rw-r--r--progs/wgl/wglthreads/wglthreads.c2
1 files changed, 2 insertions, 0 deletions
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);