Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c91c8ca9
Commit
c91c8ca9
authored
Mar 07, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Use a 1x1x1 unit box in D3DXCreateBox().
parent
b0de8d88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
mesh.c
dlls/d3dx9_36/mesh.c
+6
-10
No files found.
dlls/d3dx9_36/mesh.c
View file @
c91c8ca9
...
...
@@ -4542,12 +4542,12 @@ HRESULT WINAPI D3DXCreateBox(struct IDirect3DDevice9 *device, float width, float
unsigned
int
i
,
face
;
static
const
D3DXVECTOR3
unit_box
[]
=
{
{
-
1
.
0
f
,
-
1
.
0
f
,
-
1
.
0
f
},
{
-
1
.
0
f
,
-
1
.
0
f
,
1
.
0
f
},
{
-
1
.
0
f
,
1
.
0
f
,
1
.
0
f
},
{
-
1
.
0
f
,
1
.
0
f
,
-
1
.
0
f
},
{
-
1
.
0
f
,
1
.
0
f
,
-
1
.
0
f
},
{
-
1
.
0
f
,
1
.
0
f
,
1
.
0
f
},
{
1
.
0
f
,
1
.
0
f
,
1
.
0
f
},
{
1
.
0
f
,
1
.
0
f
,
-
1
.
0
f
},
{
1
.
0
f
,
1
.
0
f
,
-
1
.
0
f
},
{
1
.
0
f
,
1
.
0
f
,
1
.
0
f
},
{
1
.
0
f
,
-
1
.
0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
0
.
5
f
},
{
-
0
.
5
f
,
-
0
.
5
f
,
0
.
5
f
},
{
0
.
5
f
,
-
0
.
5
f
,
0
.
5
f
},
{
0
.
5
f
,
0
.
5
f
,
0
.
5
f
},
{
-
0
.
5
f
,
0
.
5
f
,
0
.
5
f
},
{
-
0
.
5
f
,
-
0
.
5
f
,
-
0
.
5
f
},
{
-
0
.
5
f
,
0
.
5
f
,
-
0
.
5
f
},
{
0
.
5
f
,
0
.
5
f
,
-
0
.
5
f
},
{
0
.
5
f
,
-
0
.
5
f
,
-
0
.
5
f
}
};
static
const
D3DXVECTOR3
normals
[]
=
{
...
...
@@ -4587,10 +4587,6 @@ HRESULT WINAPI D3DXCreateBox(struct IDirect3DDevice9 *device, float width, float
return
hr
;
}
width
/=
2
.
0
f
;
height
/=
2
.
0
f
;
depth
/=
2
.
0
f
;
for
(
i
=
0
;
i
<
24
;
i
++
)
{
vertices
[
i
].
position
.
x
=
width
*
unit_box
[
i
].
x
;
...
...
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