From c5f0155d7f60b4eeb3194898c7772e18fd011402 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 24 Sep 2009 14:22:29 -0700 Subject: OpenGL ES doesn't allow glColorPointer with a size parameter other than 4 --- opengl/libagl/array.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'opengl/libagl/array.cpp') diff --git a/opengl/libagl/array.cpp b/opengl/libagl/array.cpp index f414ee5..4878722 100644 --- a/opengl/libagl/array.cpp +++ b/opengl/libagl/array.cpp @@ -1266,9 +1266,7 @@ void glColorPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer) { ogles_context_t* c = ogles_context_t::get(); - // in theory ogles doesn't allow color arrays of size 3 - // but it is very useful to 'visualize' the normal array. - if (size<3 || size>4 || stride<0) { + if (size!=4 || stride<0) { ogles_error(c, GL_INVALID_VALUE); return; } -- cgit v1.1