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
1c91b082
Commit
1c91b082
authored
Nov 01, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Construct the projection matrix directly in set_blit_dimension().
This saves a needless matrix multiplication and is actually more obvious than the glOrtho() call.
parent
98932221
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
context.c
dlls/wined3d/context.c
+12
-5
No files found.
dlls/wined3d/context.c
View file @
1c91b082
...
...
@@ -1666,13 +1666,20 @@ void context_destroy(struct wined3d_device *device, struct wined3d_context *cont
}
/* GL locking is done by the caller */
static
inline
void
set_blit_dimension
(
UINT
width
,
UINT
height
)
{
static
void
set_blit_dimension
(
UINT
width
,
UINT
height
)
{
const
GLdouble
projection
[]
=
{
2
.
0
/
width
,
0
.
0
,
0
.
0
,
0
.
0
,
0
.
0
,
2
.
0
/
height
,
0
.
0
,
0
.
0
,
0
.
0
,
0
.
0
,
2
.
0
,
0
.
0
,
-
1
.
0
,
-
1
.
0
,
-
1
.
0
,
1
.
0
,
};
glMatrixMode
(
GL_PROJECTION
);
checkGLcall
(
"glMatrixMode(GL_PROJECTION)"
);
glLoadIdentity
();
checkGLcall
(
"glLoadIdentity()"
);
glOrtho
(
0
,
width
,
0
,
height
,
0
.
0
,
-
1
.
0
);
checkGLcall
(
"glOrtho"
);
glLoadMatrixd
(
projection
);
checkGLcall
(
"glLoadMatrixd"
);
glViewport
(
0
,
0
,
width
,
height
);
checkGLcall
(
"glViewport"
);
}
...
...
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