Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80e2b2ff authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 26911 into eclair

* changes:
  OpenGL ES doesn't allow glColorPointer with a size parameter other than 4
parents bb5a2c91 c5f0155d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
    }