summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Choice.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-30 19:25:23 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-30 19:25:23 +0200
commit0627213a824388321b8b39ff2476f5dc04f56638 (patch)
treeb83617df45f926f8321109c5b7e668b6acc28e55 /src/Fl_Gl_Choice.cxx
parentbb6072ad8290ae98568ea424cae183939404daca (diff)
FLTK widgets in OpenGL 3 windows: rewrite for driver system.
Diffstat (limited to 'src/Fl_Gl_Choice.cxx')
-rw-r--r--src/Fl_Gl_Choice.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/Fl_Gl_Choice.cxx b/src/Fl_Gl_Choice.cxx
index f67ce0a17..5c77e978b 100644
--- a/src/Fl_Gl_Choice.cxx
+++ b/src/Fl_Gl_Choice.cxx
@@ -33,14 +33,7 @@
# define GL_CURRENT_PROGRAM 0x8B8D
#endif
-// TODO: remove that from this platform-independent source file
-#ifdef _WIN32
-# include <windows.h> // for WINAPI
-#else
-# define WINAPI
-#endif
-
-typedef void (WINAPI *glUseProgram_type)(GLint);
+typedef void (*glUseProgram_type)(GLint);
static glUseProgram_type glUseProgram_f = NULL;
GLContext *Fl_Gl_Window_Driver::context_list = 0;