VirtualBox

Changeset 47161 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 15, 2013 2:02:27 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: fix wddm init & win state handling

Location:
trunk/src/VBox/Additions/common/crOpenGL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/context.c

    r43487 r47161  
    153153# endif
    154154#endif
     155
    155156        stubForcedFlush(con);
    156157
     
    13201321        }
    13211322#ifdef VBOX_WITH_WDDM
    1322         stub.spu->dispatch_table.WindowVisibleRegion(window->spuWindow, 0, NULL);
     1323        if (stub.trackWindowVisibleRgn)
     1324            stub.spu->dispatch_table.WindowVisibleRegion(window->spuWindow, 0, NULL);
    13231325#endif
    13241326    }
  • trunk/src/VBox/Additions/common/crOpenGL/load.c

    r47151 r47161  
    955955        disable_sync = 1;
    956956    }
    957 #elif defined(WINDOWS) && defined(VBOX_WITH_WDDM)
    958     hVBoxD3D = NULL;
    959     if (!GetModuleHandleEx(0, VBOX_MODNAME_DISPD3D, &hVBoxD3D))
    960     {
    961         crDebug("GetModuleHandleEx failed err %d", GetLastError());
    962         hVBoxD3D = NULL;
    963     }
    964 
    965     if (hVBoxD3D)
    966     {
    967         disable_sync = 1;
    968         crDebug("running with %s", VBOX_MODNAME_DISPD3D);
    969         stub.trackWindowVisibleRgn = 0;
    970         stub.trackWindowSize = 0;
    971         stub.trackWindowPos = 0;
    972         stub.trackWindowVisibility = 0;
    973         stub.trackWindowVisibleRgn = 0;
    974         stub.bRunningUnderWDDM = true;
    975     }
    976957#endif
    977958
     
    10261007
    10271008    stubSetDefaultConfigurationOptions();
     1009
     1010#if defined(WINDOWS) && defined(VBOX_WITH_WDDM)
     1011    hVBoxD3D = NULL;
     1012    if (!GetModuleHandleEx(0, VBOX_MODNAME_DISPD3D, &hVBoxD3D))
     1013    {
     1014        crDebug("GetModuleHandleEx failed err %d", GetLastError());
     1015        hVBoxD3D = NULL;
     1016    }
     1017
     1018    if (hVBoxD3D)
     1019    {
     1020        disable_sync = 1;
     1021        crDebug("running with %s", VBOX_MODNAME_DISPD3D);
     1022        stub.trackWindowVisibleRgn = 0;
     1023        /* @todo: should we enable that? */
     1024        stub.trackWindowSize = 0;
     1025        stub.trackWindowPos = 0;
     1026        stub.trackWindowVisibility = 0;
     1027        stub.bRunningUnderWDDM = true;
     1028    }
     1029#endif
    10281030
    10291031    stub.spu = crSPULoadChain( num_spus, spu_ids, spu_names, stub.spu_dir, NULL );
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