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:
Carsten Haitzler 2019-01-19 19:30:18 +00:00
parent 87e6e4e60a
commit c7449e097b
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);