Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d5e2c142
Commit
d5e2c142
authored
Jun 28, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jun 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add a NOP ret handler to GLSL.
parent
d4312ebb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
glsl_shader.c
dlls/wined3d/glsl_shader.c
+8
-1
No files found.
dlls/wined3d/glsl_shader.c
View file @
d5e2c142
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment