wined3d: Fix retrival of driver adapter versions.
Vitaliy Margolen
wine-patch at kievinfo.com
Sun Mar 5 14:07:44 CST 2006
ChangeLog:
wined3d: Fix retrival of driver adapter versions.
dlls/wined3d/directx.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
-------------- next part --------------
ed87fda01bca21a493007d48bd29439a2bba47a0
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index ca932ef..ba04dd8 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1009,8 +1009,11 @@ HRESULT WINAPI IWineD3DImpl_GetAdapterId
reuse the values once we have a context which is valid. Values from
a temporary context may differ from the final ones */
if (isGLInfoValid == FALSE) {
+ WineD3D_Context *fake_ctx = NULL;
+ if (glXGetCurrentContext() == NULL) fake_ctx = WineD3D_CreateFakeGLContext();
/* If we don't know the device settings, go query them now */
isGLInfoValid = IWineD3DImpl_FillGLCaps(&This->gl_info, IWineD3DImpl_GetAdapterDisplay(iface, Adapter));
+ if (fake_ctx != NULL) WineD3D_ReleaseFakeGLContext(fake_ctx);
}
/* If it worked, return the information requested */
More information about the wine-patches
mailing list