void d3d_vertex_buffer_unlock(LPDIRECT3DVERTEXBUFFER vertbuf) { /* This is a stub on Xbox 1, see docs. */ #ifndef _XBOX1 #ifdef _XBOX360 D3DVertexBuffer_Unlock(vertbuf); #else vertbuf->Unlock(); #endif #endif }
void d3d_vertex_buffer_unlock(void *vertbuf_ptr) { LPDIRECT3DVERTEXBUFFER vertbuf = (LPDIRECT3DVERTEXBUFFER)vertbuf_ptr; /* This is a stub on Xbox 1, see docs. */ #ifndef _XBOX1 #ifdef _XBOX360 D3DVertexBuffer_Unlock(vertbuf); #if defined(HAVE_D3D9) && !defined(__cplusplus) IDirect3DVertexBuffer9_Unlock(vertbuf); #else vertbuf->Unlock(); #endif #endif #endif }