mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user