Stefan Dösinger : wined3d: Put the APPLE_flush_buffer_range code into the right branch.
Alexandre Julliard
julliard at winehq.org
Tue Jan 26 11:21:08 CST 2010
Module: wine
Branch: master
Commit: ee720f05d1b925aae5f6530b3b1d3e32c520bc43
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ee720f05d1b925aae5f6530b3b1d3e32c520bc43
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Mon Jan 25 23:39:43 2010 +0100
wined3d: Put the APPLE_flush_buffer_range code into the right branch.
---
dlls/wined3d/buffer.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index 024aab5..e38a861 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -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
More information about the wine-cvs
mailing list