mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
Avoid crash in p3tinydisplay when there is no initial window
This commit is contained in:
parent
de715b5a0e
commit
9396f998fb
@ -604,6 +604,10 @@ create_full_frame_buffer() {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void TinyXGraphicsWindow::
|
void TinyXGraphicsWindow::
|
||||||
create_reduced_frame_buffer() {
|
create_reduced_frame_buffer() {
|
||||||
|
if (!_full_frame_buffer) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_reduced_frame_buffer != NULL) {
|
if (_reduced_frame_buffer != NULL) {
|
||||||
ZB_close(_reduced_frame_buffer);
|
ZB_close(_reduced_frame_buffer);
|
||||||
_reduced_frame_buffer = NULL;
|
_reduced_frame_buffer = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user