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
93c949eb
Commit
93c949eb
authored
Oct 01, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use stateblock_init_contained_states() for WINED3DSBT_PIXELSTATE stateblocks.
parent
5a01619d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
45 deletions
+1
-45
stateblock.c
dlls/wined3d/stateblock.c
+1
-45
No files found.
dlls/wined3d/stateblock.c
View file @
93c949eb
...
...
@@ -1499,51 +1499,7 @@ HRESULT stateblock_init(IWineD3DStateBlockImpl *stateblock, IWineD3DDeviceImpl *
TRACE
(
"PIXELSTATE => Pretend all pixel states have changed.
\n
"
);
stateblock_savedstates_set_pixel
(
&
stateblock
->
changed
,
gl_info
);
/* Pixel Shader Constants. */
for
(
i
=
0
;
i
<
gl_info
->
max_pshader_constantsF
;
++
i
)
{
stateblock
->
contained_ps_consts_f
[
i
]
=
i
;
}
stateblock
->
num_contained_ps_consts_f
=
gl_info
->
max_pshader_constantsF
;
for
(
i
=
0
;
i
<
MAX_CONST_B
;
++
i
)
{
stateblock
->
contained_ps_consts_b
[
i
]
=
i
;
}
stateblock
->
num_contained_ps_consts_b
=
MAX_CONST_B
;
for
(
i
=
0
;
i
<
MAX_CONST_I
;
++
i
)
{
stateblock
->
contained_ps_consts_i
[
i
]
=
i
;
}
stateblock
->
num_contained_ps_consts_i
=
MAX_CONST_I
;
for
(
i
=
0
;
i
<
NUM_SAVEDPIXELSTATES_R
;
i
++
)
{
stateblock
->
contained_render_states
[
i
]
=
SavedPixelStates_R
[
i
];
}
stateblock
->
num_contained_render_states
=
NUM_SAVEDPIXELSTATES_R
;
for
(
i
=
0
;
i
<
MAX_TEXTURES
;
++
i
)
{
for
(
j
=
0
;
j
<
NUM_SAVEDPIXELSTATES_T
;
++
j
)
{
stateblock
->
contained_tss_states
[
stateblock
->
num_contained_tss_states
].
stage
=
i
;
stateblock
->
contained_tss_states
[
stateblock
->
num_contained_tss_states
].
state
=
SavedPixelStates_T
[
j
];
++
stateblock
->
num_contained_tss_states
;
}
}
for
(
i
=
0
;
i
<
MAX_COMBINED_SAMPLERS
;
++
i
)
{
for
(
j
=
0
;
j
<
NUM_SAVEDPIXELSTATES_S
;
++
j
)
{
stateblock
->
contained_sampler_states
[
stateblock
->
num_contained_sampler_states
].
stage
=
i
;
stateblock
->
contained_sampler_states
[
stateblock
->
num_contained_sampler_states
].
state
=
SavedPixelStates_S
[
j
];
stateblock
->
num_contained_sampler_states
++
;
}
}
stateblock_init_contained_states
(
stateblock
);
if
(
stateblock
->
pixelShader
)
IWineD3DPixelShader_AddRef
(
stateblock
->
pixelShader
);
...
...
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