st/mesa: set take_ownership=true for util_draw_vertex_buffer in st_DrawTex
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27492>
This commit is contained in:
@@ -297,13 +297,11 @@ st_DrawTex(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z,
|
||||
}
|
||||
|
||||
util_draw_vertex_buffer(pipe, cso, vbuffer,
|
||||
offset, false,
|
||||
offset, true,
|
||||
MESA_PRIM_TRIANGLE_FAN,
|
||||
4, /* verts */
|
||||
numAttribs); /* attribs/vert */
|
||||
|
||||
pipe_resource_reference(&vbuffer, NULL);
|
||||
|
||||
/* restore state */
|
||||
cso_restore_state(cso, 0);
|
||||
ctx->Array.NewVertexElements = true;
|
||||
|
Reference in New Issue
Block a user