summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-29 12:01:34 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-29 12:01:34 -0600
commitf8ee72d98f2d23e034e90870ff6a760659a462a5 (patch)
treebbdabd77f2b1724d8110213e58c48f612f7b755f /src/mesa
parent4f96000e294fa0d6ba6f5915ff508017d9c26d50 (diff)
fix VBO-split infinite loop (bug 12164)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/tnl/t_draw.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/tnl/t_draw.c b/src/mesa/tnl/t_draw.c
index 5b2b2ae549..46b8b536a2 100644
--- a/src/mesa/tnl/t_draw.c
+++ b/src/mesa/tnl/t_draw.c
@@ -1,9 +1,8 @@
-
/*
* Mesa 3-D graphics library
- * Version: 6.5
+ * Version: 7.1
*
- * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -368,7 +367,7 @@ void _tnl_draw_prims( GLcontext *ctx,
_tnl_draw_prims );
return;
}
- else if (max_index >= max) {
+ else if (max_index > max) {
/* The software TNL pipeline has a fixed amount of storage for
* vertices and it is necessary to split incoming drawing commands
* if they exceed that limit.