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
d7f94bf7
Commit
d7f94bf7
authored
Aug 21, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Correctly draw transformed and untransformed vertices in the same scene.
parent
a96ef0ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
drawprim.c
dlls/wined3d/drawprim.c
+8
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/drawprim.c
View file @
d7f94bf7
...
...
@@ -182,8 +182,13 @@ void d3ddevice_set_ortho(IWineD3DDeviceImpl *This) {
width
=
This
->
stateBlock
->
viewport
.
Width
;
minZ
=
This
->
stateBlock
->
viewport
.
MinZ
;
maxZ
=
This
->
stateBlock
->
viewport
.
MaxZ
;
TRACE
(
"Calling glOrtho with %f, %f, %f, %f
\n
"
,
width
,
height
,
-
minZ
,
-
maxZ
);
glOrtho
(
X
,
X
+
width
,
Y
+
height
,
Y
,
-
minZ
,
-
maxZ
);
if
(
!
This
->
untransformed
)
{
TRACE
(
"Calling glOrtho with %f, %f, %f, %f
\n
"
,
width
,
height
,
-
minZ
,
-
maxZ
);
glOrtho
(
X
,
X
+
width
,
Y
+
height
,
Y
,
-
minZ
,
-
maxZ
);
}
else
{
TRACE
(
"Calling glOrtho with %f, %f, %f, %f
\n
"
,
width
,
height
,
1
.
0
,
-
1
.
0
);
glOrtho
(
X
,
X
+
width
,
Y
+
height
,
Y
,
1
.
0
,
-
1
.
0
);
}
checkGLcall
(
"glOrtho"
);
/* Window Coord 0 is the middle of the first pixel, so translate by half
...
...
@@ -258,6 +263,7 @@ static void primitiveInitState(
}
else
{
/* Untransformed, so relies on the view and projection matrices */
This
->
untransformed
=
TRUE
;
if
(
!
useVS
&&
(
This
->
last_was_rhw
||
!
This
->
modelview_valid
))
{
/* Only reapply when have to */
...
...
dlls/wined3d/wined3d_private.h
View file @
d7f94bf7
...
...
@@ -513,6 +513,7 @@ typedef struct IWineD3DDeviceImpl
UINT
alphafunc
;
BOOL
texture_shader_active
;
/* TODO: Confirm use is correct */
BOOL
last_was_notclipped
;
BOOL
untransformed
;
/* State block related */
BOOL
isRecordingState
;
...
...
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