David Rose 17 gadi atpakaļ
vecāks
revīzija
53df81cafa

+ 0 - 1
panda/src/tinydisplay/tinyOsxGraphicsWindow.h

@@ -46,7 +46,6 @@ public:
   virtual bool begin_frame(FrameMode mode, Thread *current_thread);
   virtual void end_frame(FrameMode mode, Thread *current_thread);
   virtual void begin_flip();
-  virtual void end_flip();
   virtual void process_events();
   virtual bool supports_pixel_zoom() const;
   

+ 0 - 24
panda/src/tinydisplay/tinyOsxGraphicsWindow.mm

@@ -676,25 +676,6 @@ bool TinyOsxGraphicsWindow::begin_frame(FrameMode mode, Thread *current_thread)
 void TinyOsxGraphicsWindow::end_frame(FrameMode mode, Thread *current_thread) 
 {
   end_frame_spam(mode);
-  
-  if(mode == FM_render )
-  {
-    nassertv(_gsg != (GraphicsStateGuardian *)NULL);
-
-        /*
-    if (!_properties.get_fixed_size() && 
-        !_properties.get_undecorated() && 
-        !_properties.get_fullscreen() &&
-        show_resize_box) {
-      // Draw a kludgey little resize box in the corner of the window,
-      // so the user knows he's supposed to be able to drag the window
-      // if he wants.
-      DisplayRegionPipelineReader dr_reader(_default_display_region, current_thread);
-      _gsg->prepare_display_region(&dr_reader, Lens::SC_mono);
-      DCAST(TinyGraphicsStateGuardian, _gsg)->draw_resize_box();
-    }
-        */
-  }
 
   _gsg->end_frame(current_thread);
 
@@ -721,11 +702,6 @@ void TinyOsxGraphicsWindow::end_frame(FrameMode mode, Thread *current_thread)
 //               end_flip(), to make it easier to flip all of the
 //               windows at the same time.
 ////////////////////////////////////////////////////////////////////
-void TinyOsxGraphicsWindow::end_flip()
-{
-  //  cerr << " end_flip [" << _ID << "]\n";
-}
-
 void TinyOsxGraphicsWindow::begin_flip() 
 {
   if (_osx_window == NULL) {