summaryrefslogtreecommitdiff
path: root/src/gl_draw.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/gl_draw.cxx')
-rw-r--r--src/gl_draw.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/gl_draw.cxx b/src/gl_draw.cxx
index 3104f161d..b786b830d 100644
--- a/src/gl_draw.cxx
+++ b/src/gl_draw.cxx
@@ -319,11 +319,6 @@ int gl_texture_fifo::already_known(const char *str, int n)
static gl_texture_fifo *gl_fifo = NULL; // points to the texture pile class instance
-void gl_texture_reset()
-{
- if (gl_fifo) gl_texture_pile_height(gl_texture_pile_height());
-}
-
// Cross-platform implementation of the texture mechanism for text rendering
// using textures with the alpha channel only.
@@ -465,6 +460,15 @@ int gl_texture_pile_height(void)
return gl_fifo->size();
}
+/** To call after GL operations that may invalidate textures used to draw text in GL scenes
+ (e.g., switch between FL_DOUBLE / FL_SINGLE modes).
+ */
+void gl_texture_reset()
+{
+ if (gl_fifo) gl_texture_pile_height(gl_texture_pile_height());
+}
+
+
/**
Changes the maximum height of the pile of pre-computed string textures