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
fd711c57
Commit
fd711c57
authored
Dec 26, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Combine two glScalef calls into one.
parent
44b89153
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
state.c
dlls/wined3d/state.c
+7
-7
No files found.
dlls/wined3d/state.c
View file @
fd711c57
...
@@ -2826,15 +2826,15 @@ static void transform_projection(DWORD state, IWineD3DStateBlockImpl *stateblock
...
@@ -2826,15 +2826,15 @@ static void transform_projection(DWORD state, IWineD3DStateBlockImpl *stateblock
*/
*/
glTranslatef
(
1
.
0
/
stateblock
->
viewport
.
Width
,
-
1
.
0
/
stateblock
->
viewport
.
Height
,
-
1
.
0
);
glTranslatef
(
1
.
0
/
stateblock
->
viewport
.
Width
,
-
1
.
0
/
stateblock
->
viewport
.
Height
,
-
1
.
0
);
checkGLcall
(
"glTranslatef (1.0 / width, -1.0 / height, -1.0)"
);
checkGLcall
(
"glTranslatef (1.0 / width, -1.0 / height, -1.0)"
);
glScalef
(
1
.
0
,
1
.
0
,
2
.
0
);
checkGLcall
(
"glScalef"
);
/* D3D texture coordinates are flipped compared to OpenGL ones, so
* render everything upside down when rendering offscreen. */
if
(
stateblock
->
wineD3DDevice
->
render_offscreen
)
{
if
(
stateblock
->
wineD3DDevice
->
render_offscreen
)
{
glScalef
(
1
.
0
,
-
1
.
0
,
1
.
0
);
/* D3D texture coordinates are flipped compared to OpenGL ones, so
checkGLcall
(
"glScalef"
);
* render everything upside down when rendering offscreen. */
glScalef
(
1
.
0
,
-
1
.
0
,
2
.
0
);
}
else
{
glScalef
(
1
.
0
,
1
.
0
,
2
.
0
);
}
}
checkGLcall
(
"glScalef"
);
glMultMatrixf
((
float
*
)
&
stateblock
->
transforms
[
WINED3DTS_PROJECTION
].
u
.
m
[
0
][
0
]);
glMultMatrixf
((
float
*
)
&
stateblock
->
transforms
[
WINED3DTS_PROJECTION
].
u
.
m
[
0
][
0
]);
checkGLcall
(
"glLoadMatrixf"
);
checkGLcall
(
"glLoadMatrixf"
);
}
}
...
...
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