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
3a327908
Commit
3a327908
authored
Jun 25, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jun 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Initialize the used clip planes even if no clip emulation is used.
parent
4d86eac6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+6
-12
No files found.
dlls/wined3d/arb_program_shader.c
View file @
3a327908
...
@@ -3956,9 +3956,7 @@ static inline void find_arb_vs_compile_args(IWineD3DVertexShaderImpl *shader, IW
...
@@ -3956,9 +3956,7 @@ static inline void find_arb_vs_compile_args(IWineD3DVertexShaderImpl *shader, IW
const
WineD3D_GL_Info
*
gl_info
=
&
dev
->
adapter
->
gl_info
;
const
WineD3D_GL_Info
*
gl_info
=
&
dev
->
adapter
->
gl_info
;
find_vs_compile_args
(
shader
,
stateblock
,
&
args
->
super
);
find_vs_compile_args
(
shader
,
stateblock
,
&
args
->
super
);
/* This forces all local boolean constants to 1 to make them stateblock independent */
args
->
boolclip_compare
=
0
;
args
->
boolclip
.
bools
=
shader
->
baseShader
.
reg_maps
.
local_bool_consts
;
if
(
use_ps
(
stateblock
))
if
(
use_ps
(
stateblock
))
{
{
IWineD3DPixelShaderImpl
*
ps
=
(
IWineD3DPixelShaderImpl
*
)
stateblock
->
pixelShader
;
IWineD3DPixelShaderImpl
*
ps
=
(
IWineD3DPixelShaderImpl
*
)
stateblock
->
pixelShader
;
...
@@ -3970,14 +3968,11 @@ static inline void find_arb_vs_compile_args(IWineD3DVertexShaderImpl *shader, IW
...
@@ -3970,14 +3968,11 @@ static inline void find_arb_vs_compile_args(IWineD3DVertexShaderImpl *shader, IW
else
else
{
{
args
->
ps_signature
=
~
0
;
args
->
ps_signature
=
~
0
;
if
(
dev
->
vs_clipping
)
if
(
!
dev
->
vs_clipping
)
{
args
->
boolclip
.
clip_control
[
0
]
=
0
;
}
else
{
{
args
->
boolclip
.
clip_control
[
0
]
=
ffp_clip_emul
(
stateblock
)
?
GL_LIMITS
(
texture_stages
)
:
0
;
args
->
boolclip
.
clip_control
[
0
]
=
ffp_clip_emul
(
stateblock
)
?
GL_LIMITS
(
texture_stages
)
:
0
;
}
}
/* Otherwise: Setting boolclip_compare set clip_control[0] to 0 */
}
}
if
(
args
->
boolclip
.
clip_control
[
0
])
if
(
args
->
boolclip
.
clip_control
[
0
])
...
@@ -3986,12 +3981,11 @@ static inline void find_arb_vs_compile_args(IWineD3DVertexShaderImpl *shader, IW
...
@@ -3986,12 +3981,11 @@ static inline void find_arb_vs_compile_args(IWineD3DVertexShaderImpl *shader, IW
{
{
args
->
boolclip
.
clip_control
[
1
]
=
stateblock
->
renderState
[
WINED3DRS_CLIPPLANEENABLE
];
args
->
boolclip
.
clip_control
[
1
]
=
stateblock
->
renderState
[
WINED3DRS_CLIPPLANEENABLE
];
}
}
else
/* clip_control[1] was set to 0 by setting boolclip_compare to 0 */
{
args
->
boolclip
.
clip_control
[
1
]
=
0
;
}
}
}
/* This forces all local boolean constants to 1 to make them stateblock independent */
args
->
boolclip
.
bools
=
shader
->
baseShader
.
reg_maps
.
local_bool_consts
;
/* TODO: Figure out if it would be better to store bool constants as bitmasks in the stateblock */
/* TODO: Figure out if it would be better to store bool constants as bitmasks in the stateblock */
for
(
i
=
0
;
i
<
MAX_CONST_B
;
i
++
)
for
(
i
=
0
;
i
<
MAX_CONST_B
;
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