wined3d: Pass a wined3d_device_context to wined3d_cs_emit_set_light().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
692a3128b4
commit
adb45b0ad8
|
@ -2006,15 +2006,16 @@ static void wined3d_cs_exec_set_light(struct wined3d_cs *cs, const void *data)
|
|||
light_info->cutoff = op->light.cutoff;
|
||||
}
|
||||
|
||||
void wined3d_cs_emit_set_light(struct wined3d_cs *cs, const struct wined3d_light_info *light)
|
||||
void wined3d_device_context_emit_set_light(struct wined3d_device_context *context,
|
||||
const struct wined3d_light_info *light)
|
||||
{
|
||||
struct wined3d_cs_set_light *op;
|
||||
|
||||
op = wined3d_device_context_require_space(&cs->c, sizeof(*op), WINED3D_CS_QUEUE_DEFAULT);
|
||||
op = wined3d_device_context_require_space(context, sizeof(*op), WINED3D_CS_QUEUE_DEFAULT);
|
||||
op->opcode = WINED3D_CS_OP_SET_LIGHT;
|
||||
op->light = *light;
|
||||
|
||||
wined3d_device_context_submit(&cs->c, WINED3D_CS_QUEUE_DEFAULT);
|
||||
wined3d_device_context_submit(context, WINED3D_CS_QUEUE_DEFAULT);
|
||||
}
|
||||
|
||||
static void wined3d_cs_exec_set_light_enable(struct wined3d_cs *cs, const void *data)
|
||||
|
|
|
@ -1445,7 +1445,7 @@ static void wined3d_device_set_light(struct wined3d_device *device,
|
|||
FIXME("Unrecognized light type %#x.\n", light->type);
|
||||
}
|
||||
|
||||
wined3d_cs_emit_set_light(device->cs, object);
|
||||
wined3d_device_context_emit_set_light(&device->cs->c, object);
|
||||
}
|
||||
|
||||
static void wined3d_device_set_light_enable(struct wined3d_device *device, UINT light_idx, BOOL enable)
|
||||
|
|
|
@ -4748,7 +4748,6 @@ void wined3d_cs_emit_present(struct wined3d_cs *cs, struct wined3d_swapchain *sw
|
|||
void wined3d_cs_emit_reset_state(struct wined3d_cs *cs) DECLSPEC_HIDDEN;
|
||||
void wined3d_cs_emit_set_color_key(struct wined3d_cs *cs, struct wined3d_texture *texture,
|
||||
WORD flags, const struct wined3d_color_key *color_key) DECLSPEC_HIDDEN;
|
||||
void wined3d_cs_emit_set_light(struct wined3d_cs *cs, const struct wined3d_light_info *light) DECLSPEC_HIDDEN;
|
||||
void wined3d_cs_emit_set_render_state(struct wined3d_cs *cs,
|
||||
enum wined3d_render_state state, DWORD value) DECLSPEC_HIDDEN;
|
||||
void wined3d_cs_emit_set_stream_source_freq(struct wined3d_cs *cs, UINT stream_idx,
|
||||
|
@ -4799,6 +4798,8 @@ void wined3d_device_context_emit_set_feature_level(struct wined3d_device_context
|
|||
enum wined3d_feature_level level) DECLSPEC_HIDDEN;
|
||||
void wined3d_device_context_emit_set_index_buffer(struct wined3d_device_context *context, struct wined3d_buffer *buffer,
|
||||
enum wined3d_format_id format_id, unsigned int offset) DECLSPEC_HIDDEN;
|
||||
void wined3d_device_context_emit_set_light(struct wined3d_device_context *context,
|
||||
const struct wined3d_light_info *light) DECLSPEC_HIDDEN;
|
||||
void wined3d_device_context_emit_set_light_enable(struct wined3d_device_context *context, unsigned int idx,
|
||||
BOOL enable) DECLSPEC_HIDDEN;
|
||||
void wined3d_device_context_emit_set_material(struct wined3d_device_context *context,
|
||||
|
|
Loading…
Reference in New Issue