From 74e6e16900884ad9021d0988c7ef600413a08b6e Mon Sep 17 00:00:00 2001 From: mcmartin Date: Fri, 6 Dec 2002 01:12:43 +0000 Subject: [PATCH] DCQ invariant violation repaired. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@353 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/ChangeLog | 1 + sc2/src/sc2code/libs/graphics/sdl/dcqueue.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sc2/ChangeLog b/sc2/ChangeLog index 55d5cfea3..1277d0fc9 100644 --- a/sc2/ChangeLog +++ b/sc2/ChangeLog @@ -1,4 +1,5 @@ 0.2: +- Fixed a DCQ bug where it wasn't freeing batches of graphics commands - > vs. >= bugfix on plangen.c, from PhracturedBlue - More appropriate names to ROSTER + 1 and ROSTER + 2, from slayne - Lines and colouring of planet surface when scanning, from PhracturedBlue diff --git a/sc2/src/sc2code/libs/graphics/sdl/dcqueue.c b/sc2/src/sc2code/libs/graphics/sdl/dcqueue.c index 4bbef3b2c..600ef68ae 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/dcqueue.c +++ b/sc2/src/sc2code/libs/graphics/sdl/dcqueue.c @@ -91,6 +91,7 @@ Synchronize_DCQ (void) { DrawCommandQueue->Size = (back + DCQ_MAX - front); } + DrawCommandQueue->FullSize = DrawCommandQueue->Size; } }