Commit 0587b0eb authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3d10: Use read_u32() implementation from d3dcompiler.

parent 8c294586
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment