wined3d: Use GL_STATIC_DRAW_ARB instead of GL_STATIC_DRAW.

This commit is contained in:
Stefan Dösinger 2007-02-25 23:10:20 +01:00 committed by Alexandre Julliard
parent 8d9a553d89
commit 7560c8e1d2
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,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 /* Use static write only usage for now. Dynamic index buffers stay in sysmem, and due to the sysmem
* copy no readback will be needed * 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)); GL_EXTCALL(glBufferDataARB(GL_ELEMENT_ARRAY_BUFFER_ARB, object->resource.size, NULL, glUsage));
error = glGetError(); error = glGetError();
if(error != GL_NO_ERROR) { if(error != GL_NO_ERROR) {