summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2014-12-07 07:24:32 +0000
committerManolo Gouy <Manolo>2014-12-07 07:24:32 +0000
commitc082c7880523d17675fa06dcd09c751489659653 (patch)
tree35a9182226c53cb7ad88766911d6cbb8bd983065 /src
parentf1c7d674d2d22cd14efb5e9a131c42bc5180cbcc (diff)
Removed subwindow-specific code that is no longer needed with true subwindows.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10478 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Gl_Choice.cxx12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/Fl_Gl_Choice.cxx b/src/Fl_Gl_Choice.cxx
index ad5396d8a..45fbc4bfc 100644
--- a/src/Fl_Gl_Choice.cxx
+++ b/src/Fl_Gl_Choice.cxx
@@ -304,12 +304,6 @@ GLContext fl_create_gl_context(Fl_Window* window, const Fl_Gl_Choice* g, int lay
context = aglCreateContext( g->pixelformat, shared_ctx);
if (!context) return 0;
add_context((GLContext)context);
- if ( window->parent() ) {
- int H = window->window()->h();
- GLint rect[] = { window->x(), H-window->h()-window->y(), window->w(), window->h() };
- aglSetInteger( (GLContext)context, AGL_BUFFER_RECT, rect );
- aglEnable( (GLContext)context, AGL_BUFFER_RECT );
- }
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
#if __LP64__
// 64 bit version
@@ -344,12 +338,6 @@ void fl_set_gl_context(Fl_Window* w, GLContext context) {
wglMakeCurrent(Fl_X::i(w)->private_dc, context);
# elif defined(__APPLE_QUARTZ__)
// warning: the Quartz version should probably use Core GL (CGL) instead of AGL
- if ( w->parent() ) { //: resize our GL buffer rectangle
- int H = w->window()->h();
- GLint rect[] = { w->x(), H-w->h()-w->y(), w->w(), w->h() };
- aglSetInteger( context, AGL_BUFFER_RECT, rect );
- aglEnable( context, AGL_BUFFER_RECT );
- }
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
#if __LP64__
// 64 bit version