X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fmenger.c;h=c620dfd0cc75268b38d70814987828c7fd78d37b;hp=36489fefa8442b63e434f38b47453fbfac70511d;hb=ec8d2b32b63649e6d32bdfb306eda062769af823;hpb=1d7308dd9032b39a92fda86e8c2db04218b45fbf diff --git a/hacks/glx/menger.c b/hacks/glx/menger.c index 36489fef..c620dfd0 100644 --- a/hacks/glx/menger.c +++ b/hacks/glx/menger.c @@ -526,6 +526,8 @@ draw_sponge (ModeInfo *mi) ? -sp->current_depth : sp->current_depth)); mi->polygon_count = sp->squares_fp; /* for FPS display */ + mi->recursion_depth = (sp->current_depth < 0 + ? -sp->current_depth : sp->current_depth); } glScalef (2.0, 2.0, 2.0);