d3d9: Assign to struct instead of using memcpy.
This commit is contained in:
parent
6733c6bad0
commit
43ed6eae5a
|
@ -89,7 +89,7 @@ HRESULT vdecl_convert_fvf(
|
||||||
if (!elements)
|
if (!elements)
|
||||||
return D3DERR_OUTOFVIDEOMEMORY;
|
return D3DERR_OUTOFVIDEOMEMORY;
|
||||||
|
|
||||||
memcpy(&elements[size-1], &end_element, sizeof(D3DVERTEXELEMENT9));
|
elements[size-1] = end_element;
|
||||||
idx = 0;
|
idx = 0;
|
||||||
if (has_pos) {
|
if (has_pos) {
|
||||||
if (!has_blend && (fvf & D3DFVF_XYZRHW)) {
|
if (!has_blend && (fvf & D3DFVF_XYZRHW)) {
|
||||||
|
|
Loading…
Reference in New Issue