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
3fa8f4ec
Commit
3fa8f4ec
authored
Feb 18, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Apply modifiers after floatBitsToInt()/floatBitsToUint() in shader_glsl_add_src_param().
parent
e46bdc28
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
glsl_shader.c
dlls/wined3d/glsl_shader.c
+7
-7
No files found.
dlls/wined3d/glsl_shader.c
View file @
3fa8f4ec
...
...
@@ -1758,28 +1758,28 @@ static void shader_glsl_add_src_param(const struct wined3d_shader_instruction *i
}
else
{
char
param_str
[
200
];
shader_glsl_gen_modifier
(
wined3d_src
->
modifiers
,
glsl_src
->
reg_name
,
swizzle_str
,
param_str
);
char
reg_name
[
200
];
switch
(
wined3d_src
->
reg
.
data_type
)
{
case
WINED3D_DATA_FLOAT
:
sprintf
(
glsl_src
->
param_str
,
"%s"
,
param_str
);
sprintf
(
reg_name
,
"%s"
,
glsl_src
->
reg_name
);
break
;
case
WINED3D_DATA_INT
:
sprintf
(
glsl_src
->
param_str
,
"floatBitsToInt(%s)"
,
param_str
);
sprintf
(
reg_name
,
"floatBitsToInt(%s)"
,
glsl_src
->
reg_name
);
break
;
case
WINED3D_DATA_RESOURCE
:
case
WINED3D_DATA_SAMPLER
:
case
WINED3D_DATA_UINT
:
sprintf
(
glsl_src
->
param_str
,
"floatBitsToUint(%s)"
,
param_str
);
sprintf
(
reg_name
,
"floatBitsToUint(%s)"
,
glsl_src
->
reg_name
);
break
;
default:
FIXME
(
"Unhandled data type %#x.
\n
"
,
wined3d_src
->
reg
.
data_type
);
sprintf
(
glsl_src
->
param_str
,
"%s"
,
param_str
);
sprintf
(
reg_name
,
"%s"
,
glsl_src
->
reg_name
);
break
;
}
shader_glsl_gen_modifier
(
wined3d_src
->
modifiers
,
reg_name
,
swizzle_str
,
glsl_src
->
param_str
);
}
}
...
...
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