https://bugs.winehq.org/show_bug.cgi?id=45279
Andrew Wesie awesie@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |awesie@gmail.com
--- Comment #12 from Andrew Wesie awesie@gmail.com --- The error:
0036:trace:d3d:buffer_init Not creating a BO because the buffer is not GPU accessible.
is the root cause. If the vertex buffer does not have a BO, then GL_ARRAY_BUFFER == 0 when context_load_numbered_arrays calls glVertexAttribPointer. Since element->data.addr is a pointer into heap memory (and non-zero), this makes Mesa very unhappy because Wine is violating the opengl spec.
The attached patch forces a vertex buffer to be GPU-accessible, which causes a BO to be used and the call to glVertexAttribPointer to now be valid.