mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-19 12:40:30 +00:00
d3dx9_36: Fix compilation on systems that don't support nameless unions.
This commit is contained in:
parent
39b02829ea
commit
f87745d497
|
@ -18,8 +18,10 @@
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "wine/port.h"
|
#include "wine/port.h"
|
||||||
|
#define NONAMELESSUNION
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#include "wine/unicode.h"
|
#include "wine/unicode.h"
|
||||||
|
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
#include "wingdi.h"
|
#include "wingdi.h"
|
||||||
#include "d3dx9_36_private.h"
|
#include "d3dx9_36_private.h"
|
||||||
|
@ -897,9 +899,9 @@ static void get_matrix(struct d3dx_parameter *param, D3DXMATRIX *matrix)
|
||||||
for (k = 0; k < 4; ++k)
|
for (k = 0; k < 4; ++k)
|
||||||
{
|
{
|
||||||
if ((i < param->rows) && (k < param->columns))
|
if ((i < param->rows) && (k < param->columns))
|
||||||
matrix->m[i][k] = get_float(param->type, (float *)param->data + i * param->columns + k);
|
matrix->u.m[i][k] = get_float(param->type, (float *)param->data + i * param->columns + k);
|
||||||
else
|
else
|
||||||
matrix->m[i][k] = 0.0f;
|
matrix->u.m[i][k] = 0.0f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue