Commit fc9c8e47 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Move the "buffer_object_usage" field from struct wined3d_buffer to…

wined3d: Move the "buffer_object_usage" field from struct wined3d_buffer to struct wined3d_buffer_gl. Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 12b5c914
......@@ -257,7 +257,7 @@ static BOOL wined3d_buffer_gl_create_buffer_object(struct wined3d_buffer_gl *buf
goto fail;
}
buffer_gl->b.buffer_object_usage = gl_usage;
buffer_gl->buffer_object_usage = gl_usage;
buffer_invalidate_bo_range(&buffer_gl->b, 0, 0);
return TRUE;
......@@ -827,7 +827,7 @@ static void wined3d_buffer_gl_sync_apple(struct wined3d_buffer_gl *buffer_gl,
if (flags & WINED3D_MAP_DISCARD)
{
GL_EXTCALL(glBufferData(buffer_gl->buffer_type_hint, buffer_gl->b.resource.size,
NULL, buffer_gl->b.buffer_object_usage));
NULL, buffer_gl->buffer_object_usage));
checkGLcall("glBufferData");
return;
}
......
......@@ -3759,7 +3759,6 @@ struct wined3d_buffer
struct wined3d_buffer_desc desc;
GLuint buffer_object;
GLenum buffer_object_usage;
unsigned int bind_flags;
DWORD flags;
DWORD locations;
......@@ -3799,6 +3798,7 @@ struct wined3d_buffer_gl
{
struct wined3d_buffer b;
GLenum buffer_object_usage;
GLenum buffer_type_hint;
};
......
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