mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
fix crash on shutdown
This commit is contained in:
parent
30671d09a8
commit
e52bf51058
@ -150,6 +150,10 @@ bool TinyXGraphicsWindow::
|
|||||||
begin_frame(FrameMode mode, Thread *current_thread) {
|
begin_frame(FrameMode mode, Thread *current_thread) {
|
||||||
PStatTimer timer(_make_current_pcollector, current_thread);
|
PStatTimer timer(_make_current_pcollector, current_thread);
|
||||||
|
|
||||||
|
if (_xwindow == (Window)NULL) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
begin_frame_spam(mode);
|
begin_frame_spam(mode);
|
||||||
if (_gsg == (GraphicsStateGuardian *)NULL) {
|
if (_gsg == (GraphicsStateGuardian *)NULL) {
|
||||||
return false;
|
return false;
|
||||||
@ -218,6 +222,10 @@ end_frame(FrameMode mode, Thread *current_thread) {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void TinyXGraphicsWindow::
|
void TinyXGraphicsWindow::
|
||||||
begin_flip() {
|
begin_flip() {
|
||||||
|
if (_xwindow == (Window)NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_reduced_frame_buffer != (ZBuffer *)NULL) {
|
if (_reduced_frame_buffer != (ZBuffer *)NULL) {
|
||||||
// Zoom the reduced buffer onto the full buffer.
|
// Zoom the reduced buffer onto the full buffer.
|
||||||
ZB_zoomFrameBuffer(_full_frame_buffer, 0, 0,
|
ZB_zoomFrameBuffer(_full_frame_buffer, 0, 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user