Stefan Dösinger : wined3d: Do not bind the 0 vbo when vbos are unsupported.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Sep 25 09:46:31 CDT 2006


Module: wine
Branch: master
Commit: fd65b9b4130b538c8065927c50c7acb30257857c
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=fd65b9b4130b538c8065927c50c7acb30257857c

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Wed Sep 20 18:36:49 2006 +0200

wined3d: Do not bind the 0 vbo when vbos are unsupported.

---

 dlls/wined3d/drawprim.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index aa022e2..9078aee 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -827,7 +827,7 @@ static void loadNumberedArrays(
     WineDirect3DVertexStridedData *strided) {
 
     IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
-    GLint curVBO = -1;
+    GLint curVBO = GL_SUPPORT(ARB_VERTEX_BUFFER_OBJECT) ? -1 : 0;
     int i;
 
     for (i = 0; i < MAX_ATTRIBS; i++) {




More information about the wine-cvs mailing list