]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.c
fix bug that made all textures without a shader definition have
[xonotic/darkplaces.git] / cl_screen.c
index faef96f5f6886ce54cd822bfe7506f33ecbeb5d3..4d0d7709f19ba99dc12684399f251e6eff86ee28 100644 (file)
@@ -189,6 +189,9 @@ void SCR_DrawNetGraph_DrawGraph (int graphx, int graphy, int barwidth, int barhe
 {
        int j, k, x, y, index, offset, height;
        // draw the bar graph itself
+       // advance the packet counter because it is the latest packet column being
+       // built up and should come last
+       packetcounter = (packetcounter + 1) % NETGRAPH_PACKETS;
        for (j = 0;j < NETGRAPH_PACKETS;j++)
        {
                x = graphx + j * barwidth;