Browse Source

tinydisplay: Set correct number of depth bits in buffer

rdb 1 year ago
parent
commit
05d23cae35
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/tinydisplay/tinyGraphicsBuffer.cxx

+ 2 - 0
panda/src/tinydisplay/tinyGraphicsBuffer.cxx

@@ -136,6 +136,8 @@ open_buffer() {
     return false;
     return false;
   }
   }
 
 
+  _fb_properties.set_depth_bits(ZB_Z_BITS);
+
   tinygsg->_current_frame_buffer = _frame_buffer;
   tinygsg->_current_frame_buffer = _frame_buffer;
 
 
   tinygsg->reset_if_new();
   tinygsg->reset_if_new();