Commit 19594b3f by Philipp Adolf

Use correct size for runVertexShader

parent dda3ba31
...@@ -747,7 +747,7 @@ Subdivision::Result Subdivision::runShader(Input input, Tables &tables) { ...@@ -747,7 +747,7 @@ Subdivision::Result Subdivision::runShader(Input input, Tables &tables) {
int edgeTime = timer.elapsed(); int edgeTime = timer.elapsed();
timer.restart(); timer.restart();
int vertex_offset = edge_offset + tables.edge_indices.size() / 4; int vertex_offset = edge_offset + tables.edge_indices.size() / 4;
runVertexShader(input.vertex_buffer.size(), input.vb_handle, vertex_indices_handle, vertex_offsets_handle, output_handle, vertex_offset); runVertexShader(tables.vertex_offsets.size() - 1, input.vb_handle, vertex_indices_handle, vertex_offsets_handle, output_handle, vertex_offset);
int vertexTime = timer.elapsed(); int vertexTime = timer.elapsed();
timer.restart(); timer.restart();
......
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