Changeset 18519 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/render
- Timestamp:
- Mar 30, 2009 8:38:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_wgl.c
r18256 r18519 851 851 852 852 if (!context->hRC) { 853 context->hRC = render_spu.ws.wglCreateContext( context->visual->device_context);853 context->hRC = render_spu.ws.wglCreateContext(window->device_context); 854 854 if (!context->hRC) 855 855 { … … 867 867 { 868 868 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 869 875 if (!bSetupPixelFormatNormal(window->device_context, context->visual->visAttribs)) 870 876 { 871 877 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()); 872 884 } 873 885
Note:
See TracChangeset
for help on using the changeset viewer.