diff options
| -rw-r--r-- | src/gl_draw.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gl_draw.cxx b/src/gl_draw.cxx index b786b830d..16a70a057 100644 --- a/src/gl_draw.cxx +++ b/src/gl_draw.cxx @@ -40,7 +40,9 @@ #include <FL/math.h> // for ceil() #include "Fl_Gl_Window_Driver.H" #include <FL/Fl_Image_Surface.H> -#include <FL/glu.h> // for gluUnProject() +#if HAVE_GL_GLU_H +# include <FL/glu.h> // for gluUnProject() +#endif #include <FL/glut.H> // for glutStrokeString() and glutStrokeLength() #include <stdlib.h> @@ -378,7 +380,7 @@ void gl_texture_fifo::display_texture(int rank) glMatrixMode (GL_PROJECTION); glPopMatrix(); glMatrixMode (matrixMode); - +#if HAVE_GL_GLU_H //set the raster position to end of string pos[0] += width; GLdouble modelmat[16]; @@ -395,6 +397,7 @@ void gl_texture_fifo::display_texture(int rank) objY *= gl_start_scale; } glRasterPos2d(objX, objY); +#endif // HAVE_GL_GLU_H } // display_texture @@ -626,6 +629,7 @@ void Fl_Gl_Window_Driver::draw_string_legacy_glut(const char* str, int n) glMatrixMode (GL_PROJECTION); glPopMatrix(); glMatrixMode (matrixMode); +#if HAVE_GL_GLU_H //set the raster position to end of string pos[0] += width; GLdouble modelmat[16]; @@ -641,6 +645,7 @@ void Fl_Gl_Window_Driver::draw_string_legacy_glut(const char* str, int n) objY *= gl_start_scale; } glRasterPos2d(objX, objY); +#endif // HAVE_GL_GLU_H } /** |
