wined3d: Put the APPLE_flush_buffer_range code into the right branch.

This commit is contained in:
Stefan Dösinger 2010-01-25 23:39:43 +01:00 committed by Alexandre Julliard
parent 31d08405d9
commit ee720f05d1

View file

@ -145,11 +145,6 @@ static void buffer_create_buffer_object(struct wined3d_buffer *This)
{
TRACE("Gl usage = GL_STREAM_DRAW_ARB\n");
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])
{
@ -158,6 +153,11 @@ static void buffer_create_buffer_object(struct wined3d_buffer *This)
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
* so we are safe with calling glBufferData once and