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
parent 15ded51e
#define MAJOR_VERSION 1 #define MAJOR_VERSION 1
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 993 #define BUILD_REVISION 995
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
...@@ -228,7 +228,7 @@ std::size_t IndexDataManager::typeSize(GLenum type) const ...@@ -228,7 +228,7 @@ std::size_t IndexDataManager::typeSize(GLenum type) const
StaticIndexBuffer *IndexDataManager::getCountingIndices(GLsizei count) 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); const unsigned int spaceNeeded = count * sizeof(unsigned short);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment