Commit e472a57a authored by Marek Olšák's avatar Marek Olšák

draw-vertices: test user vertex arrays

parent 3e1cdfe6
...@@ -233,6 +233,7 @@ add_plain_test(general, 'draw-elements-vs-inputs') ...@@ -233,6 +233,7 @@ add_plain_test(general, 'draw-elements-vs-inputs')
add_plain_test(general, 'draw-instanced') add_plain_test(general, 'draw-instanced')
add_plain_test(general, 'draw-instanced-divisor') add_plain_test(general, 'draw-instanced-divisor')
add_plain_test(general, 'draw-vertices') add_plain_test(general, 'draw-vertices')
general['draw-vertices-user'] = PlainExecTest(['draw-vertices', '-auto', 'user'])
add_plain_test(general, 'draw-vertices-half-float') add_plain_test(general, 'draw-vertices-half-float')
add_plain_test(general, 'early-z') add_plain_test(general, 'early-z')
add_plain_test(general, 'fog-modes') add_plain_test(general, 'fog-modes')
......
...@@ -59,7 +59,7 @@ static GLuint vboVertexPointer(GLint size, GLenum type, GLsizei stride, ...@@ -59,7 +59,7 @@ static GLuint vboVertexPointer(GLint size, GLenum type, GLsizei stride,
const GLvoid *buf, GLsizei bufSize, intptr_t bufOffset) const GLvoid *buf, GLsizei bufSize, intptr_t bufOffset)
{ {
if (user_va) { if (user_va) {
glVertexPointer(size, type, stride, buf); glVertexPointer(size, type, stride, (char*)buf + bufOffset);
return 0; return 0;
} }
GLuint id; GLuint id;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment