mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
wined3d: Add a NOP ret handler to GLSL.
This commit is contained in:
parent
d4312ebb16
commit
d5e2c14225
1 changed files with 8 additions and 1 deletions
|
@ -2602,6 +2602,13 @@ static void shader_glsl_callnz(const struct wined3d_shader_instruction *ins)
|
|||
shader_addline(ins->ctx->buffer, "if (%s) subroutine%u();\n", src1_param.param_str, ins->src[0].reg.idx);
|
||||
}
|
||||
|
||||
static void shader_glsl_ret(const struct wined3d_shader_instruction *ins)
|
||||
{
|
||||
/* No-op. The closing } is written when a new function is started, and at the end of the shader. This
|
||||
* function only suppresses the unhandled instruction warning
|
||||
*/
|
||||
}
|
||||
|
||||
/*********************************************
|
||||
* Pixel Shader Specific Code begins here
|
||||
********************************************/
|
||||
|
@ -4649,7 +4656,7 @@ static const SHADER_HANDLER shader_glsl_instruction_handler_table[WINED3DSIH_TAB
|
|||
/* WINED3DSIH_POW */ shader_glsl_pow,
|
||||
/* WINED3DSIH_RCP */ shader_glsl_rcp,
|
||||
/* WINED3DSIH_REP */ shader_glsl_rep,
|
||||
/* WINED3DSIH_RET */ NULL,
|
||||
/* WINED3DSIH_RET */ shader_glsl_ret,
|
||||
/* WINED3DSIH_RSQ */ shader_glsl_rsq,
|
||||
/* WINED3DSIH_SETP */ NULL,
|
||||
/* WINED3DSIH_SGE */ shader_glsl_compare,
|
||||
|
|
Loading…
Reference in a new issue