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
ff16f306
Commit
ff16f306
authored
Apr 06, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Store the fvf in the d3d8 vertex buffer.
parent
fd9b574e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
d3d8_private.h
dlls/d3d8/d3d8_private.h
+2
-0
device.c
dlls/d3d8/device.c
+1
-0
vertexbuffer.c
dlls/d3d8/vertexbuffer.c
+1
-1
No files found.
dlls/d3d8/d3d8_private.h
View file @
ff16f306
...
...
@@ -326,6 +326,8 @@ struct IDirect3DVertexBuffer8Impl
/* Parent reference */
LPDIRECT3DDEVICE8
parentDevice
;
DWORD
fvf
;
};
/* --------------------- */
...
...
dlls/d3d8/device.c
View file @
ff16f306
...
...
@@ -739,6 +739,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreateVertexBuffer(LPDIRECT3DDEVICE8
EnterCriticalSection
(
&
d3d8_cs
);
hrc
=
IWineD3DDevice_CreateVertexBuffer
(
This
->
WineD3DDevice
,
Size
,
Usage
&
WINED3DUSAGE_MASK
,
FVF
,
(
WINED3DPOOL
)
Pool
,
&
(
object
->
wineD3DVertexBuffer
),
NULL
,
(
IUnknown
*
)
object
);
LeaveCriticalSection
(
&
d3d8_cs
);
object
->
fvf
=
FVF
;
if
(
D3D_OK
!=
hrc
)
{
...
...
dlls/d3d8/vertexbuffer.c
View file @
ff16f306
...
...
@@ -194,7 +194,7 @@ static HRESULT WINAPI IDirect3DVertexBuffer8Impl_GetDesc(LPDIRECT3DVERTEXBUFFER8
pDesc
->
Usage
=
desc
.
Usage
;
pDesc
->
Pool
=
desc
.
Pool
;
pDesc
->
Size
=
desc
.
Size
;
pDesc
->
FVF
=
desc
.
FVF
;
pDesc
->
FVF
=
This
->
fvf
;
pDesc
->
Format
=
d3dformat_from_wined3dformat
(
desc
.
Format
);
}
...
...
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