revision 1164:01b45ca393c6
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 1164:01b45ca393c6 |
parent | 1163:034252e0689d |
child | 1165:13406c35849b |
author | nkeynes |
date | Sat Jan 22 06:07:17 2011 +1000 (11 years ago) |
Mark the NV vertex range functions as weak (to keep things working on
drivers that don't provide the entry points)
Set the fence at the start (really just to prevent an error the first time
around)
drivers that don't provide the entry points)
Set the fence at the start (really just to prevent an error the first time
around)
1.1 --- a/src/drivers/gl_vbo.c Fri Jan 21 06:41:34 2011 +10001.2 +++ b/src/drivers/gl_vbo.c Sat Jan 22 06:07:17 2011 +10001.3 @@ -132,6 +132,7 @@1.4 {1.5 vertex_buffer_t buf = vertex_buffer_new( &apple_vtable );1.6 glGenFencesAPPLE(1, &buf->fence);1.7 + glSetFenceAPPLE(buf->fence);1.8 return buf;1.9 }1.11 @@ -139,6 +140,13 @@1.13 #ifdef GL_VERTEX_ARRAY_RANGE_NV1.15 +#pragma weak glVertexArrayRangeNV1.16 +#pragma weak glFlushVertexArrayRangeNV1.17 +#pragma weak glFinishFenceNV1.18 +#pragma weak glSetFenceNV1.19 +#pragma weak glGenFencesNV1.20 +#pragma weak glDeleteFencesNV1.21 +1.22 static void *nv_map( vertex_buffer_t buf, uint32_t size )1.23 {1.24 glFinishFenceNV(buf->fence);1.25 @@ -172,6 +180,7 @@1.26 {1.27 vertex_buffer_t buf = vertex_buffer_new( &nv_vtable );1.28 glGenFencesNV(1, &buf->fence);1.29 + glSetFenceNV(buf->fence, GL_ALL_COMPLETED_NV);1.30 return buf;1.31 }
.