mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
minor fix
This commit is contained in:
parent
144c21640a
commit
26ac51dca9
@ -275,7 +275,8 @@ open_window() {
|
||||
// can't open multiple different windows with the same GSG, but you
|
||||
// may have more luck opening different windows with different
|
||||
// GSG's.
|
||||
bool discard_device = ConfigVariableBool("always-discard-device", true);
|
||||
static ConfigVariableBool always_discard_device("always-discard-device", true);
|
||||
bool discard_device = always_discard_device;
|
||||
|
||||
// GSG creation/initialization.
|
||||
if (_gsg == 0) {
|
||||
|
@ -280,7 +280,8 @@ open_window() {
|
||||
// can't open multiple different windows with the same GSG, but you
|
||||
// may have more luck opening different windows with different
|
||||
// GSG's.
|
||||
bool discard_device = ConfigVariableBool("always-discard-device", true);
|
||||
static ConfigVariableBool always_discard_device("always-discard-device", true);
|
||||
bool discard_device = always_discard_device;
|
||||
|
||||
if (_gsg == 0) {
|
||||
_dxgsg = new DXGraphicsStateGuardian9(_pipe);
|
||||
|
Loading…
x
Reference in New Issue
Block a user