mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
prevent crash after failure to open; minor correction to output
This commit is contained in:
parent
c48a1625a3
commit
673a29c71b
@ -406,6 +406,7 @@ DXGraphicsStateGuardian8(const FrameBufferProperties &properties) :
|
||||
reset_panda_gsg();
|
||||
|
||||
_pScrn = NULL;
|
||||
_pD3DDevice = NULL;
|
||||
|
||||
_bDXisReady = false;
|
||||
_overlay_windows_supported = false;
|
||||
|
@ -977,8 +977,8 @@ choose_device(void) {
|
||||
good_device_count++;
|
||||
}
|
||||
|
||||
if(good_device_count==0) {
|
||||
wdxdisplay8_cat.fatal() << "no usable display devices, exiting...\n";
|
||||
if (good_device_count==0) {
|
||||
wdxdisplay8_cat.error() << "no usable display devices.\n";
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1722,7 +1722,6 @@ reset_window(bool swapchain) {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
bool wdxGraphicsWindow8::
|
||||
open_window(void) {
|
||||
cerr << "open_window()\n";
|
||||
PT(DXGraphicsDevice8) dxdev;
|
||||
DXGraphicsStateGuardian8 *dxgsg;
|
||||
DCAST_INTO_R(dxgsg,_gsg,false);
|
||||
|
@ -406,6 +406,7 @@ DXGraphicsStateGuardian9(const FrameBufferProperties &properties) :
|
||||
reset_panda_gsg();
|
||||
|
||||
_pScrn = NULL;
|
||||
_pD3DDevice = NULL;
|
||||
|
||||
_bDXisReady = false;
|
||||
_overlay_windows_supported = false;
|
||||
|
@ -980,7 +980,7 @@ choose_device(void) {
|
||||
}
|
||||
|
||||
if(good_device_count==0) {
|
||||
wdxdisplay9_cat.fatal() << "no usable display devices, exiting...\n";
|
||||
wdxdisplay9_cat.error() << "no usable display devices.\n";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user