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
912c09b8
Commit
912c09b8
authored
Nov 17, 2003
by
Jason Edmeades
Committed by
Alexandre Julliard
Nov 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable the use of the 'w' parm in rhw mode.
parent
61608b71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
drawprim.c
dlls/d3d8/drawprim.c
+12
-2
No files found.
dlls/d3d8/drawprim.c
View file @
912c09b8
...
...
@@ -660,7 +660,12 @@ void drawStridedFast(LPDIRECT3DDEVICE8 iface, Direct3DVertexStridedData *sd,
sd
->
u
.
s
.
position
.
dwStride
,
sd
->
u
.
s
.
position
.
dwType
+
1
,
sd
->
u
.
s
.
position
.
lpData
));
glVertexPointer
(
sd
->
u
.
s
.
position
.
dwType
+
1
,
GL_FLOAT
,
/* Disable RHW mode as 'w' coord handling for rhw mode should
not impact screen position whereas in GL it does. This may
result in very slightly distored textures in rhw mode, but
a very minimal different */
glVertexPointer
(
3
,
GL_FLOAT
,
/* RHW: Was 'sd->u.s.position.dwType + 1' */
sd
->
u
.
s
.
position
.
dwStride
,
sd
->
u
.
s
.
position
.
lpData
);
checkGLcall
(
"glVertexPointer(...)"
);
...
...
@@ -1196,7 +1201,12 @@ void drawStridedSlow(LPDIRECT3DDEVICE8 iface, Direct3DVertexStridedData *sd,
glVertex3f
(
x
,
y
,
z
);
}
else
{
VTRACE
((
"Vertex: glVertex:x,y,z=%f,%f,%f / rhw=%f
\n
"
,
x
,
y
,
z
,
rhw
));
glVertex4f
(
x
,
y
,
z
,
rhw
);
/* Disable RHW mode as 'w' coord handling for rhw mode should
not impact screen position whereas in GL it does. This may
result in very slightly distored textures in rhw mode, but
a very minimal different. In slow mode a possible 'fix' is
glVertex4f(x*rhw,y*rhw,z*rhw,rhw) but not sure this is right */
glVertex3f
(
x
,
y
,
z
);
}
}
...
...
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