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
c1a7323f
Commit
c1a7323f
authored
Aug 19, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Avoid some redundant state_pscale() calls.
parent
a04064b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
state.c
dlls/wined3d/state.c
+2
-5
No files found.
dlls/wined3d/state.c
View file @
c1a7323f
...
...
@@ -4677,10 +4677,6 @@ static void viewport_miscpart(struct wined3d_context *context, const struct wine
gl_info
->
gl_ops
.
gl
.
p_glViewport
(
vp
.
x
,
(
height
-
(
vp
.
y
+
vp
.
height
)),
vp
.
width
,
vp
.
height
);
}
if
(
!
isStateDirty
(
context
,
STATE_RENDER
(
WINED3D_RS_POINTSCALEENABLE
)))
state_pscale
(
context
,
state
,
STATE_RENDER
(
WINED3D_RS_POINTSCALEENABLE
));
checkGLcall
(
"glViewport"
);
}
...
...
@@ -4688,7 +4684,8 @@ void viewport_vertexpart(struct wined3d_context *context, const struct wined3d_s
{
if
(
!
isStateDirty
(
context
,
STATE_TRANSFORM
(
WINED3D_TS_PROJECTION
)))
transform_projection
(
context
,
state
,
STATE_TRANSFORM
(
WINED3D_TS_PROJECTION
));
if
(
!
isStateDirty
(
context
,
STATE_RENDER
(
WINED3D_RS_POINTSCALEENABLE
)))
if
(
!
isStateDirty
(
context
,
STATE_RENDER
(
WINED3D_RS_POINTSCALEENABLE
))
&&
state
->
render_states
[
WINED3D_RS_POINTSCALEENABLE
])
state_pscale
(
context
,
state
,
STATE_RENDER
(
WINED3D_RS_POINTSCALEENABLE
));
/* Update the position fixup. */
context
->
constant_update_mask
|=
WINED3D_SHADER_CONST_VS_POS_FIXUP
;
...
...
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