Stefan Dösinger : d3d: Make sure vertexbuffer lock doesn't return a NULL pointer.