Skip to content

Commit

Permalink
wined3d: Move the "buffer_object_usage" field from struct wined3d_buf…
Browse files Browse the repository at this point in the history
…fer to struct wined3d_buffer_gl.

Signed-off-by: Henri Verbeet <[email protected]>
Signed-off-by: Alexandre Julliard <[email protected]>
  • Loading branch information
Henri Verbeet authored and julliard committed Oct 26, 2018
1 parent 12b5c91 commit fc9c8e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dlls/wined3d/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion dlls/wined3d/wined3d_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -3799,6 +3798,7 @@ struct wined3d_buffer_gl
{
struct wined3d_buffer b;

GLenum buffer_object_usage;
GLenum buffer_type_hint;
};

Expand Down

0 comments on commit fc9c8e4

Please sign in to comment.