From d44e498146aef13dba280268d8d4f4b08b0e0d89 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 1 Dec 2005 21:22:52 +0000 Subject: [PATCH] fix booboo --- panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx b/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx index d16c0de2b6..d2d90ba818 100644 --- a/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx +++ b/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx @@ -3767,7 +3767,7 @@ draw_indexed_primitive_up(D3DPRIMITIVETYPE primitive_type, // As above, we'll hack the case of the buffer crossing the 0x10000 // boundary. const unsigned char *buffer_start = buffer + stride * min_index; - const unsigned char *buffer_end = buffer_start + stride * (max_index + 1); + const unsigned char *buffer_end = buffer + stride * (max_index + 1); if (buffer_end - buffer_start > 0x10000) { // Actually, the buffer doesn't fit within the required limit