Fixed test for 16-bit index range.
TRAC #19988
Issue=304
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/trunk@995 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/common/version.h b/src/common/version.h
index 3af2abe..0e7dbaa 100644
--- a/src/common/version.h
+++ b/src/common/version.h
@@ -1,7 +1,7 @@
#define MAJOR_VERSION 1
#define MINOR_VERSION 0
#define BUILD_VERSION 0
-#define BUILD_REVISION 993
+#define BUILD_REVISION 995
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
diff --git a/src/libGLESv2/IndexDataManager.cpp b/src/libGLESv2/IndexDataManager.cpp
index 3dc0aef..d374d1c 100644
--- a/src/libGLESv2/IndexDataManager.cpp
+++ b/src/libGLESv2/IndexDataManager.cpp
@@ -228,7 +228,7 @@
StaticIndexBuffer *IndexDataManager::getCountingIndices(GLsizei count)
{
- if (count <= 65536) // 16-bit indices
+ if (count < 65536) // 16-bit indices
{
const unsigned int spaceNeeded = count * sizeof(unsigned short);