From 797d31b23f8d770795deed2afa025003813d2dd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Mon, 25 Jan 2010 23:39:43 +0100 Subject: [PATCH 02/18] WineD3D: Put the APPLE_flush_buffer_range code into the right branch We want this for dynamic buffers. I don't know how it ended up in the wrong 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 -- 1.6.4.4