summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl E. Thompson <devel-fltk@carlthompson.net>2000-06-10 19:30:01 +0000
committerCarl E. Thompson <devel-fltk@carlthompson.net>2000-06-10 19:30:01 +0000
commitb3d9c227bc6d167fe24fc21e318c04a05d810be8 (patch)
tree8732955c8905678c3aa0aaa7c879915bd03a9b00 /src
parent8e5c8b50d3f480265cdea227186ece0b1c29fc15 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Gl_Window.cxx20
1 files changed, 11 insertions, 9 deletions
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 $".
//