summaryrefslogtreecommitdiffstats
path: root/opengl/libagl/array.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-09-24 14:22:29 -0700
committerMathias Agopian <mathias@google.com>2009-09-24 14:22:29 -0700
commitc5f0155d7f60b4eeb3194898c7772e18fd011402 (patch)
tree8b75e25876c29f9ea2a5130935ee4ee80ee6d9de /opengl/libagl/array.cpp
parent1ae4f51bedc85a1666b321a42e933c3075d03cee (diff)
downloadframeworks_native-c5f0155d7f60b4eeb3194898c7772e18fd011402.zip
frameworks_native-c5f0155d7f60b4eeb3194898c7772e18fd011402.tar.gz
frameworks_native-c5f0155d7f60b4eeb3194898c7772e18fd011402.tar.bz2
OpenGL ES doesn't allow glColorPointer with a size parameter other than 4
Diffstat (limited to 'opengl/libagl/array.cpp')
-rw-r--r--opengl/libagl/array.cpp4
1 files changed, 1 insertions, 3 deletions
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;
}