Commit e65679f4 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d/nvrc: Move FFP bumpenv constant loading to nvrc_apply_draw_state().

parent 8f2586cf
...@@ -56,6 +56,18 @@ static inline size_t align(size_t addr, size_t alignment) ...@@ -56,6 +56,18 @@ static inline size_t align(size_t addr, size_t alignment)
return (addr + (alignment - 1)) & ~(alignment - 1); return (addr + (alignment - 1)) & ~(alignment - 1);
} }
static inline uint32_t float_to_int(float f)
{
union
{
uint32_t u;
float f;
} u;
u.f = f;
return u.u;
}
static inline float int_to_float(uint32_t i) static inline float int_to_float(uint32_t i)
{ {
union union
......
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