static inline GLuint
__glDrawArrays_maxindex(GLint first, GLsizei count)
{
+ if (!count) {
+ return 0;
+ }
return first + count - 1;
}
{
GLvoid *temp = 0;
GLint __element_array_buffer = 0;
+
+ if (!count) {
+ return 0;
+ }
__glGetIntegerv(GL_ELEMENT_ARRAY_BUFFER_BINDING, &__element_array_buffer);
if (__element_array_buffer) {
// Read indices from index buffer object