diff options
Diffstat (limited to 'test/cube.cxx')
| -rw-r--r-- | test/cube.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/cube.cxx b/test/cube.cxx index f7052b40a..c067d49ea 100644 --- a/test/cube.cxx +++ b/test/cube.cxx @@ -119,7 +119,9 @@ void cube_box::draw() { // if an OpenGL graphics driver is installed, give it a chance // to draw additional graphics - if (Fl::cfg_gfx_opengl) Fl_Gl_Window::draw(); +#if HAVE_GL + Fl_Gl_Window::draw(); +#endif } int cube_box::handle(int e) { @@ -234,12 +236,10 @@ void makeform(const char *name) { #if HAVE_GL // try to overlay a button onto an OpenGL window - if (Fl::cfg_gfx_opengl) { - lt_cube->begin(); - Fl_Button *test = new Fl_Button(35, 105, 100, 30, "Test"); - test->box(FL_ROUND_UP_BOX); - lt_cube->end(); - } + lt_cube->begin(); + Fl_Button *test = new Fl_Button(35, 105, 100, 30, "Test"); + test->box(FL_ROUND_UP_BOX); + lt_cube->end(); #endif // HAVE_GL } |
