mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
Add DirextX/driver managment options.
This commit is contained in:
parent
baf81ca972
commit
deb3f12f1b
@ -188,6 +188,14 @@ ConfigVariableBool dx_use_multithread
|
||||
ConfigVariableBool dx_use_puredevice
|
||||
("dx-use-puredevice", false);
|
||||
|
||||
// DX device option
|
||||
ConfigVariableBool dx_disable_driver_management
|
||||
("dx-disable-driver-management", false);
|
||||
|
||||
// DX device option
|
||||
ConfigVariableBool dx_disable_driver_management_ex
|
||||
("dx-disable-driver-management-ex", false);
|
||||
|
||||
// nVidia's performace heads up display
|
||||
ConfigVariableBool dx_use_nvperfhud
|
||||
("dx-use-nvperfhud", false);
|
||||
|
@ -78,6 +78,8 @@ extern ConfigVariableBool dx_use_dynamic_textures;
|
||||
// DX device options
|
||||
extern ConfigVariableBool dx_use_multithread;
|
||||
extern ConfigVariableBool dx_use_puredevice;
|
||||
extern ConfigVariableBool dx_disable_driver_management;
|
||||
extern ConfigVariableBool dx_disable_driver_management_ex;
|
||||
|
||||
// nVidia's performace heads up display
|
||||
extern ConfigVariableBool dx_use_nvperfhud;
|
||||
|
@ -688,6 +688,13 @@ create_screen_buffers_and_device(DXScreenData &display, bool force_16bpp_zbuffer
|
||||
dwBehaviorFlags |= D3DCREATE_PUREDEVICE;
|
||||
}
|
||||
|
||||
if (dx_disable_driver_management) {
|
||||
dwBehaviorFlags |= D3DCREATE_DISABLE_DRIVER_MANAGEMENT;
|
||||
}
|
||||
if (dx_disable_driver_management_ex) {
|
||||
dwBehaviorFlags |= D3DCREATE_DISABLE_DRIVER_MANAGEMENT_EX;
|
||||
}
|
||||
|
||||
if (is_fullscreen()) {
|
||||
// CREATE FULLSCREEN BUFFERS
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user