minor fix

This commit is contained in:
David Rose 2007-04-30 17:20:17 +00:00
parent 144c21640a
commit 26ac51dca9
2 changed files with 4 additions and 2 deletions

View File

@ -275,7 +275,8 @@ open_window() {
// can't open multiple different windows with the same GSG, but you // can't open multiple different windows with the same GSG, but you
// may have more luck opening different windows with different // may have more luck opening different windows with different
// GSG's. // 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. // GSG creation/initialization.
if (_gsg == 0) { if (_gsg == 0) {

View File

@ -280,7 +280,8 @@ open_window() {
// can't open multiple different windows with the same GSG, but you // can't open multiple different windows with the same GSG, but you
// may have more luck opening different windows with different // may have more luck opening different windows with different
// GSG's. // 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) { if (_gsg == 0) {
_dxgsg = new DXGraphicsStateGuardian9(_pipe); _dxgsg = new DXGraphicsStateGuardian9(_pipe);