diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-04-23 18:17:16 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-04-23 18:17:16 +0200 |
| commit | a98d3a6569d94ff59d8e20094b0695701b9217b6 (patch) | |
| tree | 32a08cc20ed6b8900f6ea6168848649dad2c4967 /src/Fl_Gl_Choice.cxx | |
| parent | 6f82d88af3bb393c2418436962e51a7318ea04b7 (diff) | |
Use HAVE_GLXGETPROCADDRESSARB preprocessor variable
Diffstat (limited to 'src/Fl_Gl_Choice.cxx')
| -rw-r--r-- | src/Fl_Gl_Choice.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_Gl_Choice.cxx b/src/Fl_Gl_Choice.cxx index 77722dc2d..d71156ac9 100644 --- a/src/Fl_Gl_Choice.cxx +++ b/src/Fl_Gl_Choice.cxx @@ -418,7 +418,11 @@ GLContext Fl_X11_Gl_Window_Driver::create_gl_context(Fl_Window* window, const Fl typedef GLContext (*glXCreateContextAttribsARBProc)(Display*, GLXFBConfig, GLContext, Bool, const int*); // It is not necessary to create or make current to a context before calling glXGetProcAddressARB static glXCreateContextAttribsARBProc glXCreateContextAttribsARB = +#if defined(HAVE_GLXGETPROCADDRESSARB) (glXCreateContextAttribsARBProc)glXGetProcAddressARB((const GLubyte *)"glXCreateContextAttribsARB"); +#else + NULL; +#endif GLContext ctx = 0; // Check for the GLX_ARB_create_context extension string and the function. |
