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

wined3d: Make the buffer parameter to buffer_is_fully_dirty() const.

parent b9b22887
...@@ -81,17 +81,15 @@ static BOOL buffer_is_dirty(const struct wined3d_buffer *buffer) ...@@ -81,17 +81,15 @@ static BOOL buffer_is_dirty(const struct wined3d_buffer *buffer)
return !!buffer->modified_areas; return !!buffer->modified_areas;
} }
static inline BOOL buffer_is_fully_dirty(struct wined3d_buffer *This) static BOOL buffer_is_fully_dirty(const struct wined3d_buffer *buffer)
{ {
unsigned int i; unsigned int i;
for(i = 0; i < This->modified_areas; i++) for (i = 0; i < buffer->modified_areas; ++i)
{
if (!This->maps[i].offset && This->maps[i].size == This->resource.size)
{ {
if (!buffer->maps[i].offset && buffer->maps[i].size == buffer->resource.size)
return TRUE; return TRUE;
} }
}
return FALSE; return FALSE;
} }
......
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