d3d8: Redefine D3DVSD_MAKETOKENTYPE to avoid shift overflow (warnings).
Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0ad7a0df89
commit
a0991fc73f
|
@ -267,7 +267,7 @@ typedef enum _D3DVSDT_TYPE {
|
|||
|
||||
|
||||
#define D3DVSD_MAKETOKENTYPE(TokenType) \
|
||||
((TokenType << D3DVSD_TOKENTYPESHIFT) & D3DVSD_TOKENTYPEMASK)
|
||||
(((unsigned)TokenType << D3DVSD_TOKENTYPESHIFT) & D3DVSD_TOKENTYPEMASK)
|
||||
|
||||
#define D3DVSD_CONST(ConstantAddress, Count) \
|
||||
(D3DVSD_MAKETOKENTYPE(D3DVSD_TOKEN_CONSTMEM) | ((Count) << D3DVSD_CONSTCOUNTSHIFT) | (ConstantAddress))
|
||||
|
|
Loading…
Reference in New Issue