Commit ee720f05 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Put the APPLE_flush_buffer_range code into the right branch.

parent 31d08405
...@@ -145,11 +145,6 @@ static void buffer_create_buffer_object(struct wined3d_buffer *This) ...@@ -145,11 +145,6 @@ static void buffer_create_buffer_object(struct wined3d_buffer *This)
{ {
TRACE("Gl usage = GL_STREAM_DRAW_ARB\n"); TRACE("Gl usage = GL_STREAM_DRAW_ARB\n");
gl_usage = GL_STREAM_DRAW_ARB; gl_usage = GL_STREAM_DRAW_ARB;
}
else
{
TRACE("Gl usage = GL_DYNAMIC_DRAW_ARB\n");
gl_usage = GL_DYNAMIC_DRAW_ARB;
if(gl_info->supported[APPLE_FLUSH_BUFFER_RANGE]) if(gl_info->supported[APPLE_FLUSH_BUFFER_RANGE])
{ {
...@@ -158,6 +153,11 @@ static void buffer_create_buffer_object(struct wined3d_buffer *This) ...@@ -158,6 +153,11 @@ static void buffer_create_buffer_object(struct wined3d_buffer *This)
This->flags |= WINED3D_BUFFER_FLUSH; This->flags |= WINED3D_BUFFER_FLUSH;
} }
} }
else
{
TRACE("Gl usage = GL_DYNAMIC_DRAW_ARB\n");
gl_usage = GL_DYNAMIC_DRAW_ARB;
}
/* Reserve memory for the buffer. The amount of data won't change /* Reserve memory for the buffer. The amount of data won't change
* so we are safe with calling glBufferData once and * so we are safe with calling glBufferData once and
......
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