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
38cb9d02
Commit
38cb9d02
authored
Jul 10, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Take geometry shaders into account in shader_glsl_load_constantsB().
parent
69b76122
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
glsl_shader.c
dlls/wined3d/glsl_shader.c
+22
-2
No files found.
dlls/wined3d/glsl_shader.c
View file @
38cb9d02
...
...
@@ -502,10 +502,30 @@ static void shader_glsl_load_constantsB(IWineD3DBaseShaderImpl *This, const Wine
GLint
tmp_loc
;
unsigned
int
i
;
char
tmp_name
[
8
];
char
is_pshader
=
shader_is_pshader_version
(
This
->
baseShader
.
reg_maps
.
shader_version
.
type
);
const
char
*
prefix
=
is_pshader
?
"PB"
:
"VB"
;
const
char
*
prefix
;
struct
list
*
ptr
;
switch
(
This
->
baseShader
.
reg_maps
.
shader_version
.
type
)
{
case
WINED3D_SHADER_TYPE_VERTEX
:
prefix
=
"VB"
;
break
;
case
WINED3D_SHADER_TYPE_GEOMETRY
:
prefix
=
"GB"
;
break
;
case
WINED3D_SHADER_TYPE_PIXEL
:
prefix
=
"PB"
;
break
;
default:
FIXME
(
"Unknown shader type %#x.
\n
"
,
This
->
baseShader
.
reg_maps
.
shader_version
.
type
);
prefix
=
"UB"
;
break
;
}
/* TODO: Benchmark and see if it would be beneficial to store the
* locations of the constants to avoid looking up each time */
for
(
i
=
0
;
constants_set
;
constants_set
>>=
1
,
++
i
)
...
...
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