Changeset 47161 in vbox for trunk/src/VBox
- Timestamp:
- Jul 15, 2013 2:02:27 PM (11 years ago)
- Location:
- trunk/src/VBox/Additions/common/crOpenGL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/context.c
r43487 r47161 153 153 # endif 154 154 #endif 155 155 156 stubForcedFlush(con); 156 157 … … 1320 1321 } 1321 1322 #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); 1323 1325 #endif 1324 1326 } -
trunk/src/VBox/Additions/common/crOpenGL/load.c
r47151 r47161 955 955 disable_sync = 1; 956 956 } 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 }976 957 #endif 977 958 … … 1026 1007 1027 1008 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 1028 1030 1029 1031 stub.spu = crSPULoadChain( num_spus, spu_ids, spu_names, stub.spu_dir, NULL );
Note:
See TracChangeset
for help on using the changeset viewer.