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
8a68f418
Commit
8a68f418
authored
Oct 06, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't reserve clipping constants needlessly.
parent
ed2860f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+9
-2
No files found.
dlls/wined3d/arb_program_shader.c
View file @
8a68f418
...
...
@@ -648,8 +648,15 @@ static DWORD shader_generate_arb_declarations(IWineD3DBaseShader *iface, const s
if
(
reg_maps
->
constf
[
idx
]
&
(
1
<<
shift
))
highest_constf
=
i
;
}
clip_limit
=
GL_LIMITS
(
clipplanes
);
if
(
ctx
->
target_version
==
ARB
)
clip_limit
=
min
(
clip_limit
,
4
);
if
(
use_nv_clip
(
gl_info
)
&&
ctx
->
target_version
>=
NV2
)
{
clip_limit
=
GL_LIMITS
(
clipplanes
);
}
else
{
unsigned
int
mask
=
ctx
->
cur_vs_args
->
boolclip
.
clipplane_mask
;
clip_limit
=
min
(
count_bits
(
mask
),
4
);
}
*
num_clipplanes
=
min
(
clip_limit
,
max_constantsF
-
highest_constf
-
1
);
max_constantsF
-=
*
num_clipplanes
;
if
(
*
num_clipplanes
<
clip_limit
)
...
...
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