u_upload_mgr: pass alignment to u_upload_alloc manually
[mesa.git] / src / mesa / state_tracker / st_cb_drawpixels.c
index a125d1f149e5217168e67feb74c6e0f0b21f9191..86e8a55e25e7dd233fb12f00a838da731b595b80 100644 (file)
@@ -457,7 +457,7 @@ draw_quad(struct gl_context *ctx, GLfloat x0, GLfloat y0, GLfloat z,
    struct pipe_resource *buf = NULL;
    unsigned offset;
 
-   u_upload_alloc(st->uploader, 0, 4 * sizeof(verts[0]), &offset,
+   u_upload_alloc(st->uploader, 0, 4 * sizeof(verts[0]), 4, &offset,
                   &buf, (void **) &verts);
    if (!buf) {
       return;