From b3d9c227bc6d167fe24fc21e318c04a05d810be8 Mon Sep 17 00:00:00 2001 From: "Carl E. Thompson" Date: Sat, 10 Jun 2000 19:30:01 +0000 Subject: Made sure all draw()s were protected and all handle()s were public. (Most were already.) Looks like I forgot to commit those changes to eliminate Mesa dependancy in the code. Here it is. Carl git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Gl_Window.cxx | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx index 86b9c36a7..d2a32bbfe 100644 --- a/src/Fl_Gl_Window.cxx +++ b/src/Fl_Gl_Window.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Gl_Window.cxx,v 1.12.2.14 2000/06/10 18:24:30 bill Exp $" +// "$Id: Fl_Gl_Window.cxx,v 1.12.2.15 2000/06/10 19:30:01 carl Exp $" // // OpenGL window code for the Fast Light Tool Kit (FLTK). // @@ -53,11 +53,11 @@ #define COPY 2 // unchanged #define NODAMAGE 3 // unchanged even by X expose() events -#ifdef MESA -#define SWAP_TYPE NODAMAGE -#else +//#ifdef MESA +//#define SWAP_TYPE NODAMAGE +//#else #define SWAP_TYPE SWAP -#endif +//#endif //////////////////////////////////////////////////////////////// @@ -292,9 +292,11 @@ void Fl_Gl_Window::hide() { glXDestroyContext(fl_display, (GLXContext)context); #endif } -#ifdef GLX_MESA_release_buffers - glXReleaseBuffersMESA(fl_display, fl_xid(this)); -#endif +// This causes incompatibility with some OpenGL libraries +// I don't think this is not necessary in any case, right? +//#ifdef GLX_MESA_release_buffers +// glXReleaseBuffersMESA(fl_display, fl_xid(this)); +//#endif context = 0; } #if HAVE_GL_OVERLAY && defined(_WIN32) @@ -327,5 +329,5 @@ void Fl_Gl_Window::draw_overlay() {} #endif // -// End of "$Id: Fl_Gl_Window.cxx,v 1.12.2.14 2000/06/10 18:24:30 bill Exp $". +// End of "$Id: Fl_Gl_Window.cxx,v 1.12.2.15 2000/06/10 19:30:01 carl Exp $". // -- cgit v1.2.3