]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix some missing changes in the D3D path when r_vertexposition_t was
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 20 Jan 2011 14:24:23 +0000 (14:24 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 20 Jan 2011 14:24:23 +0000 (14:24 +0000)
removed

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10713 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c

index dc51f4251ec413eb185004cc4a021f70b7daf9aa..f2161b19360ac97b995d68bb75e42600dbc52e77 100644 (file)
@@ -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: