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

wined3d: Revert the GL usage confusion.

This is functionally a revert of 8eeb513b. The language of the extension is slightly confusing to me, but GL_STREAM_*_ARB is more dynamic than GL_DYNAMIC_*_ARB. So use GL_STREAM usage for D3DUSAGE_DYNAMIC buffers and GL_DYNAMIC usage for non-dynamic buffers.
parent feecb8eb
......@@ -85,13 +85,13 @@ static void buffer_create_buffer_object(struct wined3d_buffer *This)
*/
if(This->resource.usage & WINED3DUSAGE_DYNAMIC)
{
TRACE("Gl usage = GL_DYNAMIC_DRAW\n");
gl_usage = GL_DYNAMIC_DRAW_ARB;
TRACE("Gl usage = GL_STREAM_DRAW_ARB\n");
gl_usage = GL_STREAM_DRAW_ARB;
}
else
{
TRACE("Gl usage = GL_STREAM_DRAW\n");
gl_usage = GL_STREAM_DRAW_ARB;
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
......
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