From: havoc Date: Thu, 20 Jan 2011 14:24:23 +0000 (+0000) Subject: fix some missing changes in the D3D path when r_vertexposition_t was X-Git-Tag: xonotic-v0.5.0~438^2~128 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;ds=inline;h=66c5c5ac441c0bbaaa9487b21c7077ad44be5371;p=xonotic%2Fdarkplaces.git fix some missing changes in the D3D path when r_vertexposition_t was removed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10713 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_backend.c b/gl_backend.c index dc51f425..f2161b19 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -3646,12 +3646,12 @@ void R_Mesh_PrepareVertices_Vertex3f(int numvertices, const float *vertex3f, con #ifdef SUPPORTD3D IDirect3DDevice9_SetVertexDeclaration(vid_d3d9dev, r_vertex3f_d3d9decl); if (vertexbuffer) - IDirect3DDevice9_SetStreamSource(vid_d3d9dev, 0, (IDirect3DVertexBuffer9*)vertexbuffer->devicebuffer, 0, sizeof(*vertex)); + IDirect3DDevice9_SetStreamSource(vid_d3d9dev, 0, (IDirect3DVertexBuffer9*)vertexbuffer->devicebuffer, 0, sizeof(float[3])); else IDirect3DDevice9_SetStreamSource(vid_d3d9dev, 0, NULL, 0, 0); gl_state.d3dvertexbuffer = (void *)vertexbuffer; - gl_state.d3dvertexdata = (void *)vertex; - gl_state.d3dvertexsize = sizeof(*vertex); + gl_state.d3dvertexdata = (void *)vertex3f; + gl_state.d3dvertexsize = sizeof(float[3]); #endif break; case RENDERPATH_D3D10: