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
3ed94329
Commit
3ed94329
authored
Apr 06, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use Map and Unmap for index buffers.
Just a change in name to prepare for the next patch
parent
dc80a3ed
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
indexbuffer.c
dlls/d3d8/indexbuffer.c
+2
-2
indexbuffer.c
dlls/d3d9/indexbuffer.c
+2
-2
device.c
dlls/ddraw/device.c
+6
-6
buffer.c
dlls/wined3d/buffer.c
+4
-4
wined3d.idl
include/wine/wined3d.idl
+2
-2
No files found.
dlls/d3d8/indexbuffer.c
View file @
3ed94329
...
...
@@ -161,7 +161,7 @@ static HRESULT WINAPI IDirect3DIndexBuffer8Impl_Lock(LPDIRECT3DINDEXBUFFER8 ifac
TRACE
(
"(%p) Relay
\n
"
,
This
);
EnterCriticalSection
(
&
d3d8_cs
);
hr
=
IWineD3DIndexBuffer_
Lock
(
This
->
wineD3DIndexBuffer
,
OffsetToLock
,
SizeToLock
,
ppbData
,
Flags
);
hr
=
IWineD3DIndexBuffer_
Map
(
This
->
wineD3DIndexBuffer
,
OffsetToLock
,
SizeToLock
,
ppbData
,
Flags
);
LeaveCriticalSection
(
&
d3d8_cs
);
return
hr
;
}
...
...
@@ -172,7 +172,7 @@ static HRESULT WINAPI IDirect3DIndexBuffer8Impl_Unlock(LPDIRECT3DINDEXBUFFER8 if
TRACE
(
"(%p) Relay
\n
"
,
This
);
EnterCriticalSection
(
&
d3d8_cs
);
hr
=
IWineD3DIndexBuffer_Un
lock
(
This
->
wineD3DIndexBuffer
);
hr
=
IWineD3DIndexBuffer_Un
map
(
This
->
wineD3DIndexBuffer
);
LeaveCriticalSection
(
&
d3d8_cs
);
return
hr
;
}
...
...
dlls/d3d9/indexbuffer.c
View file @
3ed94329
...
...
@@ -162,7 +162,7 @@ static HRESULT WINAPI IDirect3DIndexBuffer9Impl_Lock(LPDIRECT3DINDEXBUFFER9 ifac
TRACE
(
"(%p) Relay
\n
"
,
This
);
EnterCriticalSection
(
&
d3d9_cs
);
hr
=
IWineD3DIndexBuffer_
Lock
(
This
->
wineD3DIndexBuffer
,
OffsetToLock
,
SizeToLock
,
(
BYTE
**
)
ppbData
,
Flags
);
hr
=
IWineD3DIndexBuffer_
Map
(
This
->
wineD3DIndexBuffer
,
OffsetToLock
,
SizeToLock
,
(
BYTE
**
)
ppbData
,
Flags
);
LeaveCriticalSection
(
&
d3d9_cs
);
return
hr
;
}
...
...
@@ -173,7 +173,7 @@ static HRESULT WINAPI IDirect3DIndexBuffer9Impl_Unlock(LPDIRECT3DINDEXBUFFER9 if
TRACE
(
"(%p) Relay
\n
"
,
This
);
EnterCriticalSection
(
&
d3d9_cs
);
hr
=
IWineD3DIndexBuffer_Un
lock
(
This
->
wineD3DIndexBuffer
);
hr
=
IWineD3DIndexBuffer_Un
map
(
This
->
wineD3DIndexBuffer
);
LeaveCriticalSection
(
&
d3d9_cs
);
return
hr
;
}
...
...
dlls/ddraw/device.c
View file @
3ed94329
...
...
@@ -4271,11 +4271,11 @@ IDirect3DDeviceImpl_7_DrawIndexedPrimitiveVB(IDirect3DDevice7 *iface,
* or a SetData-Method for the index buffer, which
* overrides the index buffer data with our pointer.
*/
hr
=
IWineD3DIndexBuffer_
Lock
(
This
->
indexbuffer
,
0
/* OffSetToLock */
,
IndexCount
*
sizeof
(
WORD
),
(
BYTE
**
)
&
LockedIndices
,
0
/* Flags */
);
hr
=
IWineD3DIndexBuffer_
Map
(
This
->
indexbuffer
,
0
/* OffSetToLock */
,
IndexCount
*
sizeof
(
WORD
),
(
BYTE
**
)
&
LockedIndices
,
0
/* Flags */
);
assert
(
IndexCount
<
0x100000
);
if
(
hr
!=
D3D_OK
)
{
...
...
@@ -4284,7 +4284,7 @@ IDirect3DDeviceImpl_7_DrawIndexedPrimitiveVB(IDirect3DDevice7 *iface,
return
hr
;
}
memcpy
(
LockedIndices
,
Indices
,
IndexCount
*
sizeof
(
WORD
));
hr
=
IWineD3DIndexBuffer_Un
lock
(
This
->
indexbuffer
);
hr
=
IWineD3DIndexBuffer_Un
map
(
This
->
indexbuffer
);
if
(
hr
!=
D3D_OK
)
{
ERR
(
"(%p) IWineD3DIndexBuffer::Unlock failed with hr = %08x
\n
"
,
This
,
hr
);
...
...
dlls/wined3d/buffer.c
View file @
3ed94329
...
...
@@ -1091,7 +1091,7 @@ static WINED3DRESOURCETYPE STDMETHODCALLTYPE IWineD3DIndexBufferImpl_GetType(IWi
/* IWineD3DIndexBuffer methods */
static
HRESULT
STDMETHODCALLTYPE
IWineD3DIndexBufferImpl_
Lock
(
IWineD3DIndexBuffer
*
iface
,
static
HRESULT
STDMETHODCALLTYPE
IWineD3DIndexBufferImpl_
Map
(
IWineD3DIndexBuffer
*
iface
,
UINT
OffsetToLock
,
UINT
SizeToLock
,
BYTE
**
ppbData
,
DWORD
Flags
)
{
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
...
...
@@ -1128,7 +1128,7 @@ static HRESULT STDMETHODCALLTYPE IWineD3DIndexBufferImpl_Lock(IWineD3DIndexBuffe
return
WINED3D_OK
;
}
static
HRESULT
STDMETHODCALLTYPE
IWineD3DIndexBufferImpl_Un
lock
(
IWineD3DIndexBuffer
*
iface
)
static
HRESULT
STDMETHODCALLTYPE
IWineD3DIndexBufferImpl_Un
map
(
IWineD3DIndexBuffer
*
iface
)
{
IWineD3DIndexBufferImpl
*
This
=
(
IWineD3DIndexBufferImpl
*
)
iface
;
ULONG
locks
=
InterlockedDecrement
(
&
This
->
lockcount
);
...
...
@@ -1193,7 +1193,7 @@ const IWineD3DIndexBufferVtbl IWineD3DIndexBuffer_Vtbl =
IWineD3DIndexBufferImpl_UnLoad
,
IWineD3DIndexBufferImpl_GetType
,
/* IWineD3DIndexBuffer methods */
IWineD3DIndexBufferImpl_
Lock
,
IWineD3DIndexBufferImpl_Un
lock
,
IWineD3DIndexBufferImpl_
Map
,
IWineD3DIndexBufferImpl_Un
map
,
IWineD3DIndexBufferImpl_GetDesc
,
};
include/wine/wined3d.idl
View file @
3ed94329
...
...
@@ -2346,13 +2346,13 @@ interface IWineD3DRendertargetView : IWineD3DBase
]
interface
IWineD3DIndexBuffer
:
IWineD3DResource
{
HRESULT
Lock
(
HRESULT
Map
(
[
in
]
UINT
offset
,
[
in
]
UINT
size
,
[
out
]
BYTE
**
data
,
[
in
]
DWORD
flags
)
;
HRESULT
Un
lock
(
HRESULT
Un
map
(
)
;
HRESULT
GetDesc
(
[
out
]
WINED3DBUFFER_DESC
*
desc
...
...
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