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
77e6dcca
Commit
77e6dcca
authored
Apr 09, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Store the FVF in the d3d9 vertex buffer.
parent
ff16f306
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
d3d9_private.h
dlls/d3d9/d3d9_private.h
+2
-0
vertexbuffer.c
dlls/d3d9/vertexbuffer.c
+2
-1
No files found.
dlls/d3d9/d3d9_private.h
View file @
77e6dcca
...
...
@@ -329,6 +329,8 @@ typedef struct IDirect3DVertexBuffer9Impl
/* Parent reference */
LPDIRECT3DDEVICE9EX
parentDevice
;
DWORD
fvf
;
}
IDirect3DVertexBuffer9Impl
;
/* --------------------- */
...
...
dlls/d3d9/vertexbuffer.c
View file @
77e6dcca
...
...
@@ -197,8 +197,8 @@ static HRESULT WINAPI IDirect3DVertexBuffer9Impl_GetDesc(LPDIRECT3DVERTEXBUFFER9
pDesc
->
Usage
=
desc
.
Usage
;
pDesc
->
Pool
=
desc
.
Pool
;
pDesc
->
Size
=
desc
.
Size
;
pDesc
->
FVF
=
desc
.
FVF
;
pDesc
->
Type
=
D3DRTYPE_VERTEXBUFFER
;
pDesc
->
FVF
=
This
->
fvf
;
}
...
...
@@ -245,6 +245,7 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateVertexBuffer(LPDIRECT3DDEVICE9EX iface
object
->
lpVtbl
=
&
Direct3DVertexBuffer9_Vtbl
;
object
->
ref
=
1
;
object
->
fvf
=
FVF
;
EnterCriticalSection
(
&
d3d9_cs
);
hrc
=
IWineD3DDevice_CreateVertexBuffer
(
This
->
WineD3DDevice
,
Size
,
Usage
&
WINED3DUSAGE_MASK
,
FVF
,
(
WINED3DPOOL
)
Pool
,
&
(
object
->
wineD3DVertexBuffer
),
pSharedHandle
,
(
IUnknown
*
)
object
);
LeaveCriticalSection
(
&
d3d9_cs
);
...
...
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