25 lines
1.0 KiB
Diff
25 lines
1.0 KiB
Diff
From 6dff990e13322cf472797128809c312a3ee6170b Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Stefan=20D=C3=B6singer?= <stefan@codeweavers.com>
|
|
Date: Wed, 3 Aug 2011 23:47:11 +0200
|
|
Subject: [PATCH 3/3] wined3d: disable dynamic vertex buffers
|
|
|
|
---
|
|
dlls/wined3d/buffer.c | 1 +
|
|
1 files changed, 1 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
|
|
index ae04138..2eedca0 100644
|
|
--- a/dlls/wined3d/buffer.c
|
|
+++ b/dlls/wined3d/buffer.c
|
|
@@ -1211,6 +1211,7 @@ static HRESULT buffer_init(struct wined3d_buffer *buffer, struct wined3d_device
|
|
debug_d3dformat(buffer->resource.format->id), buffer->resource.allocatedMemory, buffer);
|
|
|
|
dynamic_buffer_ok = gl_info->supported[APPLE_FLUSH_BUFFER_RANGE] || gl_info->supported[ARB_MAP_BUFFER_RANGE];
|
|
+ dynamic_buffer_ok = dynamic_buffer_ok && (bind_hint == GL_ELEMENT_ARRAY_BUFFER_ARB);
|
|
|
|
/* Observations show that drawStridedSlow is faster on dynamic VBs than converting +
|
|
* drawStridedFast (half-life 2 and others).
|
|
--
|
|
1.7.3.4
|
|
|