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
6ee356fc
Commit
6ee356fc
authored
Jun 06, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Jun 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the pBaseVertexIndex parameter to…
wined3d: Get rid of the pBaseVertexIndex parameter to IWineD3DDeviceImpl_GetIndices, use GetBaseVertexIndex instead.
parent
262240ad
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
14 deletions
+13
-14
device.c
dlls/d3d8/device.c
+4
-3
device.c
dlls/d3d9/device.c
+4
-5
device.c
dlls/wined3d/device.c
+3
-4
wined3d_interface.h
include/wine/wined3d_interface.h
+2
-2
No files found.
dlls/d3d8/device.c
View file @
6ee356fc
...
@@ -1460,12 +1460,13 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetIndices(LPDIRECT3DDEVICE8 iface, I
...
@@ -1460,12 +1460,13 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetIndices(LPDIRECT3DDEVICE8 iface, I
return
D3DERR_INVALIDCALL
;
return
D3DERR_INVALIDCALL
;
}
}
rc
=
IWineD3DDevice_GetIndices
(
This
->
WineD3DDevice
,
&
retIndexData
,
pBaseVertexIndex
);
IWineD3DDevice_GetBaseVertexIndex
(
This
->
WineD3DDevice
,
pBaseVertexIndex
);
if
(
D3D_OK
==
rc
&&
NULL
!=
retIndexData
)
{
rc
=
IWineD3DDevice_GetIndices
(
This
->
WineD3DDevice
,
&
retIndexData
);
if
(
SUCCEEDED
(
rc
)
&&
retIndexData
)
{
IWineD3DIndexBuffer_GetParent
(
retIndexData
,
(
IUnknown
**
)
ppIndexData
);
IWineD3DIndexBuffer_GetParent
(
retIndexData
,
(
IUnknown
**
)
ppIndexData
);
IWineD3DIndexBuffer_Release
(
retIndexData
);
IWineD3DIndexBuffer_Release
(
retIndexData
);
}
else
{
}
else
{
if
(
rc
!=
D3D_OK
)
FIXME
(
"Call to GetIndices failed
\n
"
);
if
(
FAILED
(
rc
))
FIXME
(
"Call to GetIndices failed
\n
"
);
*
ppIndexData
=
NULL
;
*
ppIndexData
=
NULL
;
}
}
return
rc
;
return
rc
;
...
...
dlls/d3d9/device.c
View file @
6ee356fc
...
@@ -918,7 +918,6 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetIndices(LPDIRECT3DDEVICE9 iface,
...
@@ -918,7 +918,6 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetIndices(LPDIRECT3DDEVICE9 iface,
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
IDirect3DDevice9Impl
*
This
=
(
IDirect3DDevice9Impl
*
)
iface
;
IWineD3DIndexBuffer
*
retIndexData
=
NULL
;
IWineD3DIndexBuffer
*
retIndexData
=
NULL
;
HRESULT
rc
=
D3D_OK
;
HRESULT
rc
=
D3D_OK
;
UINT
tmp
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
@@ -926,12 +925,12 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetIndices(LPDIRECT3DDEVICE9 iface,
...
@@ -926,12 +925,12 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetIndices(LPDIRECT3DDEVICE9 iface,
return
D3DERR_INVALIDCALL
;
return
D3DERR_INVALIDCALL
;
}
}
rc
=
IWineD3DDevice_GetIndices
(
This
->
WineD3DDevice
,
&
retIndexData
,
&
tmp
);
rc
=
IWineD3DDevice_GetIndices
(
This
->
WineD3DDevice
,
&
retIndexData
);
if
(
rc
==
D3D_OK
&&
NULL
!=
retIndexData
)
{
if
(
SUCCEEDED
(
rc
)
&&
retIndexData
)
{
IWineD3DIndexBuffer_GetParent
(
retIndexData
,
(
IUnknown
**
)
ppIndexData
);
IWineD3DIndexBuffer_GetParent
(
retIndexData
,
(
IUnknown
**
)
ppIndexData
);
IWineD3DIndexBuffer_Release
(
retIndexData
);
IWineD3DIndexBuffer_Release
(
retIndexData
);
}
else
{
}
else
{
if
(
rc
!=
D3D_OK
)
FIXME
(
"Call to GetIndices failed
\n
"
);
if
(
FAILED
(
rc
))
FIXME
(
"Call to GetIndices failed
\n
"
);
*
ppIndexData
=
NULL
;
*
ppIndexData
=
NULL
;
}
}
return
rc
;
return
rc
;
...
...
dlls/wined3d/device.c
View file @
6ee356fc
...
@@ -2774,7 +2774,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetIndices(IWineD3DDevice *iface, IWine
...
@@ -2774,7 +2774,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetIndices(IWineD3DDevice *iface, IWine
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetIndices
(
IWineD3DDevice
*
iface
,
IWineD3DIndexBuffer
**
ppIndexData
,
UINT
*
pBaseVertexIndex
)
{
static
HRESULT
WINAPI
IWineD3DDeviceImpl_GetIndices
(
IWineD3DDevice
*
iface
,
IWineD3DIndexBuffer
**
ppIndexData
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
*
ppIndexData
=
This
->
stateBlock
->
pIndexData
;
*
ppIndexData
=
This
->
stateBlock
->
pIndexData
;
...
@@ -2782,12 +2782,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetIndices(IWineD3DDevice *iface, IWine
...
@@ -2782,12 +2782,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetIndices(IWineD3DDevice *iface, IWine
/* up ref count on ppindexdata */
/* up ref count on ppindexdata */
if
(
*
ppIndexData
)
{
if
(
*
ppIndexData
)
{
IWineD3DIndexBuffer_AddRef
(
*
ppIndexData
);
IWineD3DIndexBuffer_AddRef
(
*
ppIndexData
);
*
pBaseVertexIndex
=
This
->
stateBlock
->
baseVertexIndex
;
TRACE
(
"(%p) index data set to %p
\n
"
,
This
,
ppIndexData
);
TRACE
(
"(%p) index data set to %p + %u
\n
"
,
This
,
ppIndexData
,
This
->
stateBlock
->
baseVertexIndex
);
}
else
{
}
else
{
TRACE
(
"(%p) No index data set
\n
"
,
This
);
TRACE
(
"(%p) No index data set
\n
"
,
This
);
}
}
TRACE
(
"Returning %p
%d
\n
"
,
*
ppIndexData
,
*
pBaseVertexIndex
);
TRACE
(
"Returning %p
\n
"
,
*
ppIndexData
);
return
WINED3D_OK
;
return
WINED3D_OK
;
}
}
...
...
include/wine/wined3d_interface.h
View file @
6ee356fc
...
@@ -404,7 +404,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
...
@@ -404,7 +404,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
STDMETHOD_
(
void
,
SetGammaRamp
)(
THIS_
UINT
iSwapChain
,
DWORD
Flags
,
CONST
WINED3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD_
(
void
,
SetGammaRamp
)(
THIS_
UINT
iSwapChain
,
DWORD
Flags
,
CONST
WINED3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD_
(
void
,
GetGammaRamp
)(
THIS_
UINT
iSwapChain
,
WINED3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD_
(
void
,
GetGammaRamp
)(
THIS_
UINT
iSwapChain
,
WINED3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD
(
SetIndices
)(
THIS_
struct
IWineD3DIndexBuffer
*
pIndexData
)
PURE
;
STDMETHOD
(
SetIndices
)(
THIS_
struct
IWineD3DIndexBuffer
*
pIndexData
)
PURE
;
STDMETHOD
(
GetIndices
)(
THIS_
struct
IWineD3DIndexBuffer
**
ppIndexData
,
UINT
*
pBaseVertexIndex
)
PURE
;
STDMETHOD
(
GetIndices
)(
THIS_
struct
IWineD3DIndexBuffer
**
ppIndexData
)
PURE
;
STDMETHOD
(
SetBaseVertexIndex
)(
THIS_
UINT
baseIndex
);
STDMETHOD
(
SetBaseVertexIndex
)(
THIS_
UINT
baseIndex
);
STDMETHOD
(
GetBaseVertexIndex
)(
THIS_
UINT
*
baseIndex
);
STDMETHOD
(
GetBaseVertexIndex
)(
THIS_
UINT
*
baseIndex
);
STDMETHOD
(
SetLight
)(
THIS_
DWORD
Index
,
CONST
WINED3DLIGHT
*
pLight
)
PURE
;
STDMETHOD
(
SetLight
)(
THIS_
DWORD
Index
,
CONST
WINED3DLIGHT
*
pLight
)
PURE
;
...
@@ -541,7 +541,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
...
@@ -541,7 +541,7 @@ DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
#define IWineD3DDevice_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c)
#define IWineD3DDevice_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c)
#define IWineD3DDevice_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
#define IWineD3DDevice_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
#define IWineD3DDevice_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
#define IWineD3DDevice_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
#define IWineD3DDevice_GetIndices(p,a
,b) (p)->lpVtbl->GetIndices(p,a,b
)
#define IWineD3DDevice_GetIndices(p,a
) (p)->lpVtbl->GetIndices(p,a
)
#define IWineD3DDevice_SetBaseVertexIndex(p, a) (p)->lpVtbl->SetBaseVertexIndex(p, a)
#define IWineD3DDevice_SetBaseVertexIndex(p, a) (p)->lpVtbl->SetBaseVertexIndex(p, a)
#define IWineD3DDevice_GetBaseVertexIndex(p,a) (p)->lpVtbl->GetBaseVertexIndex(p,a)
#define IWineD3DDevice_GetBaseVertexIndex(p,a) (p)->lpVtbl->GetBaseVertexIndex(p,a)
#define IWineD3DDevice_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
#define IWineD3DDevice_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
...
...
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