wined3d: Call fixup_extensions before destroying the fake context.

This commit is contained in:
Stefan Dösinger 2008-02-24 10:19:01 +01:00 committed by Alexandre Julliard
parent d597fd12fc
commit 5709a0b4b6
1 changed files with 2 additions and 1 deletions

View File

@ -3397,10 +3397,11 @@ BOOL InitAdapters(void) {
TRACE("iPixelFormat=%d, RGBA=%d/%d/%d/%d, depth=%d, stencil=%d\n", cfgs->iPixelFormat, cfgs->redSize, cfgs->greenSize, cfgs->blueSize, cfgs->alphaSize, cfgs->depthSize, cfgs->stencilSize);
cfgs++;
}
WineD3D_ReleaseFakeGLContext();
fixup_extensions(&Adapters[0].gl_info);
WineD3D_ReleaseFakeGLContext();
select_shader_mode(&Adapters[0].gl_info, WINED3DDEVTYPE_HAL, &ps_selected_mode, &vs_selected_mode);
select_shader_max_constants(ps_selected_mode, vs_selected_mode, &Adapters[0].gl_info);
fillGLAttribFuncs(&Adapters[0].gl_info);