[11/12] WineD3D: Use GL_STATIC_DRAW_ARB instead of GL_STATIC_DRAW
Stefan Dösinger
stefan at codeweavers.com
Mon Feb 26 06:52:05 CST 2007
-------------- next part --------------
From 33437a090874adc5ad768f2f955257cdb00542ff 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 609549f..4b7d582 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -478,7 +478,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