Ian Romanick <[email protected]> writes: > From: Ian Romanick <[email protected]> > > This will allow users of piglit_draw_rect_from_arrays to function in > desktop OpenGL core profile. > > Signed-off-by: Ian Romanick <[email protected]> > Cc: Matt Turner <[email protected]> > Cc: Paul Berry <[email protected]>
> + /* Assume that VBOs are supported in any implementation that > + * uses shaders. > + */ > + glGetIntegerv(GL_ARRAY_BUFFER_BINDING, > + (GLint *) &old_buf); > + glGenBuffers(1, &buf); > + glBindBuffer(GL_ARRAY_BUFFER, buf); > + glBufferData(GL_ARRAY_BUFFER, > + (sizeof(GLfloat) * 4 * 4) > + + (sizeof(GLfloat) * 4 * 2), > + NULL, > + GL_STATIC_DRAW); Funny indentation here.
pgp60eGM7jSrR.pgp
Description: PGP signature
_______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
