wined3d: Move the "buffer_object_usage" field from struct wined3d_buffer to struct wined3d_buffer_gl.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
12b5c91485
commit
fc9c8e4758
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue