Yes, you're right, I forgot to commit the declaration of raw_resource in wined3d_private.<br> And yes, it can be replaced by dst instead. <div class="gl_quote" style="margin-top: 20px; padding-top: 5px;"> <div class="gl_quoted">On Sun, Jan 29, 2017 at 11:52 AM, Guillaume Charifi<br> wrote:<br> > Signed-off-by: Guillaume Charifi<br> > ---<br> > dlls/wined3d/arb_program_shader.c | 1 +<br> > dlls/wined3d/glsl_shader.c | 1 +<br> > dlls/wined3d/shader.c | 6 ++++++<br> > dlls/wined3d/shader_sm4.c | 10 ++++++++++<br> > dlls/wined3d/wined3d_private.h | 1 +<br> > 5 files changed, 19 insertions(+)<br> <br> This patch doesn't even compile. Please test your patches before<br> sending them to wine-patches.<br> <br> > +static void shader_sm5_read_dcl_resource_raw(struct wined3d_shader_instruction *ins,<br> > + DWORD opcode, DWORD opcode_token, const DWORD *tokens, unsigned int token_count,<br> > + struct wined3d_sm4_data *priv)<br> > +{<br> > + shader_sm4_read_dst_param(priv, &tokens, WINED3D_DATA_RESOURCE, &ins->declaration.raw_resource.reg);<br> > +}<br> <br> You should just use "ins->declaration.dst".</div> </div>