Add better error checking on buffer updates

TRAC #12186

Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch

Author:    Andrew Lewycky

git-svn-id: https://angleproject.googlecode.com/svn/trunk@266 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/geometry/IndexDataManager.h b/src/libGLESv2/geometry/IndexDataManager.h
index 0165640..ac0cbfe 100644
--- a/src/libGLESv2/geometry/IndexDataManager.h
+++ b/src/libGLESv2/geometry/IndexDataManager.h
@@ -45,9 +45,10 @@
     IndexDataManager(Context *context, BufferBackEnd *backend);
     ~IndexDataManager();
 
-    TranslatedIndexData preRenderValidate(GLenum mode, GLenum type, GLsizei count, Buffer *arrayElementBuffer, const void *indices);
+    GLenum preRenderValidate(GLenum mode, GLenum type, GLsizei count, Buffer *arrayElementBuffer, const void *indices, TranslatedIndexData *translated);
 
   private:
+    std::size_t IndexDataManager::typeSize(GLenum type) const;
     std::size_t IndexDataManager::indexSize(GLenum type) const;
     std::size_t spaceRequired(GLenum type, GLsizei count) const;
     TranslatedIndexBuffer *prepareIndexBuffer(GLenum type, std::size_t requiredSpace);