wined3d: Move validate_material_colour_source() to wined3d_private.h.
Signed-off-by: Paul Gofman <gofmanp@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ae2696c992
commit
0d79d3625e
|
@ -6378,16 +6378,6 @@ int wined3d_ffp_frag_program_key_compare(const void *key, const struct wine_rb_e
|
|||
return memcmp(ka, kb, sizeof(*ka));
|
||||
}
|
||||
|
||||
static enum wined3d_material_color_source validate_material_colour_source(WORD use_map,
|
||||
enum wined3d_material_color_source source)
|
||||
{
|
||||
if (source == WINED3D_MCS_COLOR1 && use_map & (1u << WINED3D_FFP_DIFFUSE))
|
||||
return source;
|
||||
if (source == WINED3D_MCS_COLOR2 && use_map & (1u << WINED3D_FFP_SPECULAR))
|
||||
return source;
|
||||
return WINED3D_MCS_MATERIAL;
|
||||
}
|
||||
|
||||
void wined3d_ffp_get_vs_settings(const struct wined3d_context *context,
|
||||
const struct wined3d_state *state, struct wined3d_ffp_vs_settings *settings)
|
||||
{
|
||||
|
|
|
@ -4840,6 +4840,16 @@ static inline void wined3d_not_from_cs(struct wined3d_cs *cs)
|
|||
assert(cs->thread_id != GetCurrentThreadId());
|
||||
}
|
||||
|
||||
static inline enum wined3d_material_color_source validate_material_colour_source(WORD use_map,
|
||||
enum wined3d_material_color_source source)
|
||||
{
|
||||
if (source == WINED3D_MCS_COLOR1 && use_map & (1u << WINED3D_FFP_DIFFUSE))
|
||||
return source;
|
||||
if (source == WINED3D_MCS_COLOR2 && use_map & (1u << WINED3D_FFP_SPECULAR))
|
||||
return source;
|
||||
return WINED3D_MCS_MATERIAL;
|
||||
}
|
||||
|
||||
/* The WNDCLASS-Name for the fake window which we use to retrieve the GL capabilities */
|
||||
#define WINED3D_OPENGL_WINDOW_CLASS_NAME "WineD3D_OpenGL"
|
||||
|
||||
|
|
Loading…
Reference in New Issue