Skip to content

Commit

Permalink
macOS: fixed problem in resizing of widget-containing OpenGL 3 window.
Browse files Browse the repository at this point in the history
  • Loading branch information
ManoloFLTK committed Oct 1, 2022
1 parent 0627213 commit 4196daa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/Fl_Gl_Window.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ void Fl_Gl_Window::resize(int X,int Y,int W,int H) {
if (is_a_resize) valid(0);
pGlWindowDriver->resize(is_a_resize, W, H);
Fl_Window::resize(X,Y,W,H);
//pGlWindowDriver->resize(is_a_resize, W, H);//essai
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/Cocoa/Fl_Cocoa_Gl_Window_Driver.mm
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ static void remove_gl_context_opacity(NSOpenGLContext *ctx) {
}

void Fl_Cocoa_Gl_Window_Driver::apply_scissor() {
if (glIsEnabled(GL_SCISSOR_TEST)) glDisable(GL_SCISSOR_TEST);
CGRect *extents = Fl_Cocoa_Window_Driver::driver(pWindow)->subRect();
if (extents) {
remove_gl_context_opacity((NSOpenGLContext*)pWindow->context());
glDisable(GL_SCISSOR_TEST);
GLdouble vals[4];
glGetDoublev(GL_COLOR_CLEAR_VALUE, vals);
glClearColor(0., 0., 0., 0.);
Expand Down

0 comments on commit 4196daa

Please sign in to comment.