wined3d: Force stream info update on vertex shader change.
This commit is contained in:
parent
65711634ce
commit
d8c5e417c2
|
@ -3048,7 +3048,12 @@ BOOL context_apply_draw_state(struct wined3d_context *context, struct wined3d_de
|
||||||
* updating a resource location. */
|
* updating a resource location. */
|
||||||
context_update_tex_unit_map(context, state);
|
context_update_tex_unit_map(context, state);
|
||||||
context_preload_textures(context, state);
|
context_preload_textures(context, state);
|
||||||
if (isStateDirty(context, STATE_VDECL) || isStateDirty(context, STATE_STREAMSRC))
|
/* TODO: Right now the dependency on the vertex shader is necessary
|
||||||
|
* since context_stream_info_from_declaration depends on the reg_maps of
|
||||||
|
* the current VS but maybe it's possible to relax the coupling in some
|
||||||
|
* situations at least. */
|
||||||
|
if (isStateDirty(context, STATE_VDECL) || isStateDirty(context, STATE_STREAMSRC)
|
||||||
|
|| isStateDirty(context, STATE_SHADER(WINED3D_SHADER_TYPE_VERTEX)))
|
||||||
{
|
{
|
||||||
context_update_stream_info(context, state);
|
context_update_stream_info(context, state);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue