Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9db67a59
Commit
9db67a59
authored
Apr 28, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Clear reg_maps in shader_get_registers_used() instead of the callers.
parent
0df45148
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
4 deletions
+1
-4
baseshader.c
dlls/wined3d/baseshader.c
+1
-2
pixelshader.c
dlls/wined3d/pixelshader.c
+0
-1
vertexshader.c
dlls/wined3d/vertexshader.c
+0
-1
No files found.
dlls/wined3d/baseshader.c
View file @
9db67a59
...
...
@@ -556,8 +556,7 @@ HRESULT shader_get_registers_used(IWineD3DBaseShader *iface, struct shader_reg_m
/* There are some minor differences between pixel and vertex shaders */
memset
(
reg_maps
->
bumpmat
,
0
,
sizeof
(
reg_maps
->
bumpmat
));
memset
(
reg_maps
->
luminanceparams
,
0
,
sizeof
(
reg_maps
->
luminanceparams
));
memset
(
reg_maps
,
0
,
sizeof
(
*
reg_maps
));
/* get_registers_used is called on every compile on some 1.x shaders, which can result
* in stacking up a collection of local constants. Delete the old constants if existing
...
...
dlls/wined3d/pixelshader.c
View file @
9db67a59
...
...
@@ -314,7 +314,6 @@ static HRESULT WINAPI IWineD3DPixelShaderImpl_SetFunction(IWineD3DPixelShader *i
list_init
(
&
This
->
baseShader
.
constantsI
);
/* Second pass: figure out which registers are used, what the semantics are, etc.. */
memset
(
reg_maps
,
0
,
sizeof
(
shader_reg_maps
));
hr
=
shader_get_registers_used
((
IWineD3DBaseShader
*
)
This
,
reg_maps
,
This
->
semantics_in
,
NULL
,
pFunction
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
dlls/wined3d/vertexshader.c
View file @
9db67a59
...
...
@@ -329,7 +329,6 @@ static HRESULT WINAPI IWineD3DVertexShaderImpl_SetFunction(IWineD3DVertexShader
/* Second pass: figure out registers used, semantics, etc.. */
This
->
min_rel_offset
=
GL_LIMITS
(
vshader_constantsF
);
This
->
max_rel_offset
=
0
;
memset
(
reg_maps
,
0
,
sizeof
(
shader_reg_maps
));
hr
=
shader_get_registers_used
((
IWineD3DBaseShader
*
)
This
,
reg_maps
,
This
->
semantics_in
,
This
->
semantics_out
,
pFunction
);
if
(
hr
!=
WINED3D_OK
)
return
hr
;
...
...
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