d3d10: Use read_u32() implementation from d3dcompiler.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8c29458630
commit
0587b0eb9c
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include "d3d10.h"
|
||||
#include "d3dcompiler.h"
|
||||
#include "utils.h"
|
||||
|
||||
/*
|
||||
* This doesn't belong here, but for some functions it is possible to return that value,
|
||||
|
|
|
@ -837,16 +837,6 @@ static BOOL d3d_array_reserve(void **elements, SIZE_T *capacity, SIZE_T count, S
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
static uint32_t read_u32(const char **ptr)
|
||||
{
|
||||
uint32_t u32;
|
||||
|
||||
memcpy(&u32, *ptr, sizeof(u32));
|
||||
*ptr += sizeof(u32);
|
||||
|
||||
return u32;
|
||||
}
|
||||
|
||||
static BOOL require_space(size_t offset, size_t count, size_t size, size_t data_size)
|
||||
{
|
||||
return !count || (data_size - offset) / count >= size;
|
||||
|
|
Loading…
Reference in New Issue