projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5465f3a
)
progs/wgl: Make context current to get GL_RENDERER string.
author
Michal Krol
<michal@vmware.com>
Fri, 20 Mar 2009 15:13:39 +0000
(16:13 +0100)
committer
Michal Krol
<michal@vmware.com>
Fri, 20 Mar 2009 15:13:39 +0000
(16:13 +0100)
progs/wgl/wglthreads/wglthreads.c
patch
|
blob
|
history
diff --git
a/progs/wgl/wglthreads/wglthreads.c
b/progs/wgl/wglthreads/wglthreads.c
index 32f3e45edf57d78a97a074b2b847cb51a4a0d496..9ca7f025dc3a0e1e097b4b23bc05dbfe847cc779 100644
(file)
--- 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);