wined3d: Revert the GL usage confusion.

This is functionally a revert of
8eeb513b1a. 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.
This commit is contained in:
Stefan Dösinger 2009-12-17 18:11:20 +01:00 committed by Alexandre Julliard
parent feecb8ebaf
commit b9976c3d20
1 changed files with 4 additions and 4 deletions

View File

@ -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