FLTK logo

[master] a70bd69 - Fix argument of glMatrixMode() call.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] a70bd69 - Fix argument of glMatrixMode() call. "ManoloFLTK" Aug 21, 2022  
 
commit a70bd69cfb8a9721de5ef059e3dab4ac0e99157e
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sun Aug 21 10:14:18 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sun Aug 21 10:14:18 2022 +0200

    Fix argument of glMatrixMode() call.

 src/Fl_Gl_Window.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git src/Fl_Gl_Window.cxx src/Fl_Gl_Window.cxx
index 4295d44..7e96784 100644
--- src/Fl_Gl_Window.cxx
+++ src/Fl_Gl_Window.cxx
@@ -381,7 +381,7 @@ void Fl_Gl_Window::draw_begin() {
  \see \ref opengl_with_fltk_widgets
  */
 void Fl_Gl_Window::draw_end() {
-  glMatrixMode(GL_MODELVIEW_MATRIX);
+  glMatrixMode(GL_MODELVIEW);
   glPopMatrix();
 
   glMatrixMode(GL_PROJECTION);
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.