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
f716eea3
Commit
f716eea3
authored
Mar 22, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Mar 22, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Initialise WINED3DVERTEXELEMENT's Reg field in
IWineD3DVertexDeclarationImpl_ParseDeclaration9.
parent
46b13aaa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+1
-0
wined3d_types.h
include/wine/wined3d_types.h
+1
-1
No files found.
dlls/wined3d/vertexdeclaration.c
View file @
f716eea3
...
@@ -383,6 +383,7 @@ static HRESULT IWineD3DVertexDeclarationImpl_ParseDeclaration9(IWineD3DVertexDec
...
@@ -383,6 +383,7 @@ static HRESULT IWineD3DVertexDeclarationImpl_ParseDeclaration9(IWineD3DVertexDec
This
->
pDeclarationWine
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
declaration9NumElements
*
sizeof
(
WINED3DVERTEXELEMENT
));
This
->
pDeclarationWine
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
declaration9NumElements
*
sizeof
(
WINED3DVERTEXELEMENT
));
for
(
i
=
0
;
i
<
This
->
declaration9NumElements
;
++
i
)
{
for
(
i
=
0
;
i
<
This
->
declaration9NumElements
;
++
i
)
{
memcpy
(
This
->
pDeclarationWine
+
i
,
This
->
pDeclaration9
+
i
,
sizeof
(
D3DVERTEXELEMENT9
));
memcpy
(
This
->
pDeclarationWine
+
i
,
This
->
pDeclaration9
+
i
,
sizeof
(
D3DVERTEXELEMENT9
));
This
->
pDeclarationWine
[
i
].
Reg
=
-
1
;
}
}
This
->
declarationWNumElements
=
This
->
declaration9NumElements
;
This
->
declarationWNumElements
=
This
->
declaration9NumElements
;
...
...
include/wine/wined3d_types.h
View file @
f716eea3
...
@@ -507,7 +507,7 @@ typedef struct _WINED3DVERTEXELEMENT {
...
@@ -507,7 +507,7 @@ typedef struct _WINED3DVERTEXELEMENT {
BYTE
Method
;
BYTE
Method
;
BYTE
Usage
;
BYTE
Usage
;
BYTE
UsageIndex
;
BYTE
UsageIndex
;
BYTE
Reg
;
/* DirectX 8 */
int
Reg
;
/* DirectX 8 */
}
WINED3DVERTEXELEMENT
,
*
LPWINED3DVERTEXELEMENT
;
}
WINED3DVERTEXELEMENT
,
*
LPWINED3DVERTEXELEMENT
;
...
...
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