summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-08-27 08:01:55 +0000
committerManolo Gouy <Manolo>2017-08-27 08:01:55 +0000
commit52249a960d50015ab4291851c4e6d6944fb89a32 (patch)
tree148761cbde2ff6bf96479a7398ef0f5cc4b51fdc
parentab7c915bf026fe9eb574942717953a000af2dd73 (diff)
Associate gl_font() and gl_draw() calls.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12405 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--test/cube.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cube.cxx b/test/cube.cxx
index 09864fd5c..36cd43e0b 100644
--- a/test/cube.cxx
+++ b/test/cube.cxx
@@ -98,7 +98,6 @@ void cube_box::draw() {
glEnable(GL_DEPTH_TEST);
glFrustum(-1,1,-1,1,2,10000);
glTranslatef(0,0,-10);
- gl_font(FL_HELVETICA_BOLD, 16 );
glClearColor(0.4, 0.4, 0.4, 0);
}
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
@@ -112,6 +111,7 @@ void cube_box::draw() {
glPopMatrix();
gl_color(FL_GRAY);
glDisable(GL_DEPTH_TEST);
+ gl_font(FL_HELVETICA_BOLD, 16 );
gl_draw(wire ? "Cube: wire" : "Cube: flat", -4.5f, -4.5f );
glEnable(GL_DEPTH_TEST);