forked from enlightenment/efl
evas gl - fix patch that fixed warnings that then broke evas gl tests
even though it was reviewed... 8a617fda97
broke the evas gl tests. this fixes that.
This commit is contained in:
parent
87e6e4e60a
commit
c7449e097b
|
@ -249,7 +249,7 @@ draw_gear(GLData *gld, Gear *gear, GLfloat *m,
|
|||
gl->glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE,
|
||||
6 * sizeof(GLfloat), NULL);
|
||||
gl->glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE,
|
||||
6 * sizeof(GLfloat), (GLfloat *)(0 + 3 * sizeof(GLfloat *)));
|
||||
6 * sizeof(GLfloat), (GLfloat *)(0 + 3 * sizeof(GLfloat)));
|
||||
gl->glEnableVertexAttribArray(0);
|
||||
gl->glEnableVertexAttribArray(1);
|
||||
gl->glDrawArrays(GL_TRIANGLE_STRIP, 0, gear->count);
|
||||
|
|
|
@ -461,7 +461,7 @@ draw_gear(GLData *gld, Gear *gear, GLfloat *transform,
|
|||
|
||||
// Set up the position of the attributes in the vertex buffer object
|
||||
gl->glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(GLfloat), NULL);
|
||||
gl->glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(GLfloat), (GLfloat *)(0 + 3 * sizeof(GLfloat *)));
|
||||
gl->glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(GLfloat), (GLfloat *)(0 + 3 * sizeof(GLfloat)));
|
||||
|
||||
// Enable the attributes
|
||||
gl->glEnableVertexAttribArray(0);
|
||||
|
|
Loading…
Reference in New Issue