VirtualBox

Ignore:
Timestamp:
Mar 30, 2009 8:38:53 AM (16 years ago)
Author:
vboxsync
Message:

crOpenGL: another fix for intel drivers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_wgl.c

    r18256 r18519  
    851851
    852852            if (!context->hRC) {
    853                 context->hRC = render_spu.ws.wglCreateContext( context->visual->device_context );
     853                context->hRC = render_spu.ws.wglCreateContext(window->device_context);
    854854                if (!context->hRC)
    855855                {
     
    867867                {
    868868                    crDebug("Trying to resetup pixel format");
     869
     870                    render_spu.ws.wglDeleteContext(context->hRC);
     871                    DeleteDC(window->device_context);
     872                    window->device_context = GetDC(window->hWnd);
     873                    crDebug("Render SPU: MakeCurrent made new window DC: 0x%x", window->device_context);
     874                   
    869875                    if (!bSetupPixelFormatNormal(window->device_context, context->visual->visAttribs))
    870876                    {
    871877                        crWarning("Failed to resetup pixel format");
     878                    }
     879
     880                    context->hRC = render_spu.ws.wglCreateContext(window->device_context);
     881                    if (!context->hRC)
     882                    {
     883                        crError("Render SPU: (MakeCurrent) Couldn't create the context for the window (error 0x%x)", GetLastError());
    872884                    }
    873885
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette