[2/8] WineD3D: Use GL_STATIC_DRAW_ARB instead of GL_STATIC_DRAW

Stefan Dösinger stefan at codeweavers.com
Wed Feb 28 10:18:36 CST 2007


-------------- next part --------------
From f3632ca38abd8a64ced282eb2d55cc59520efe09 Mon Sep 17 00:00:00 2001
From: Stefan Doesinger <stefan at codeweavers.com>
Date: Sun, 25 Feb 2007 23:10:20 +0100
Subject: [PATCH] WineD3D: Use GL_STATIC_DRAW_ARB instead of GL_STATIC_DRAW

Fixes compilation with older gl headers
---
 dlls/wined3d/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 445df6e..b4377a0 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -472,7 +472,7 @@ static void CreateIndexBufferVBO(IWineD3DDeviceImpl *This, IWineD3DIndexBufferIm
     /* Use static write only usage for now. Dynamic index buffers stay in sysmem, and due to the sysmem
         * copy no readback will be needed
         */
-    glUsage = GL_STATIC_DRAW;
+    glUsage = GL_STATIC_DRAW_ARB;
     GL_EXTCALL(glBufferDataARB(GL_ELEMENT_ARRAY_BUFFER_ARB, object->resource.size, NULL, glUsage));
     error = glGetError();
     if(error != GL_NO_ERROR) {
-- 
1.4.4.3



More information about the wine-patches mailing list