diff --git a/panda/src/wgldisplay/wglGraphicsBuffer.cxx b/panda/src/wgldisplay/wglGraphicsBuffer.cxx index f76da0df74..7531d0d40c 100644 --- a/panda/src/wgldisplay/wglGraphicsBuffer.cxx +++ b/panda/src/wgldisplay/wglGraphicsBuffer.cxx @@ -128,7 +128,7 @@ end_frame(FrameMode mode) { //////////////////////////////////////////////////////////////////// // Function: wglGraphicsStateGuardian::begin_render_texture -// Access: Public, Virtual +// Access: Private // Description: If the GraphicsOutput supports direct render-to-texture, // and if any setup needs to be done during begin_frame, // then the setup code should go here. Any textures that @@ -149,7 +149,7 @@ begin_render_texture() { //////////////////////////////////////////////////////////////////// // Function: GraphicsOutput::end_render_texture -// Access: Public, Virtual +// Access: Private // Description: If the GraphicsOutput supports direct render-to-texture, // and if any setup needs to be done during end_frame, // then the setup code should go here. Any textures that diff --git a/panda/src/wgldisplay/wglGraphicsBuffer.h b/panda/src/wgldisplay/wglGraphicsBuffer.h index cc3c5fcdf3..764dabfa2a 100644 --- a/panda/src/wgldisplay/wglGraphicsBuffer.h +++ b/panda/src/wgldisplay/wglGraphicsBuffer.h @@ -52,9 +52,6 @@ public: virtual void select_cube_map(int cube_map_index); virtual void release_gsg(); - virtual void begin_render_texture(); - virtual void end_render_texture(); - virtual void process_events(); protected: @@ -62,6 +59,8 @@ protected: virtual bool open_buffer(); private: + void begin_render_texture(); + void end_render_texture(); bool make_pbuffer(HDC window_dc); int choose_pbuffer_format(HDC twindow_dc, bool draw_to_texture);