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
4330d20d
Commit
4330d20d
authored
Mar 27, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove IWineD3DVertexDeclaration_SetDeclaration() from the public interface.
parent
d8a4cc66
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
device.c
dlls/wined3d/device.c
+2
-1
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+3
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+3
-0
wined3d.idl
include/wine/wined3d.idl
+0
-4
No files found.
dlls/wined3d/device.c
View file @
4330d20d
...
...
@@ -2172,7 +2172,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexDeclaration(IWineD3DDevice*
*
ppVertexDeclaration
=
(
IWineD3DVertexDeclaration
*
)
object
;
hr
=
IWineD3DVertexDeclaration_SetDeclaration
((
IWineD3DVertexDeclaration
*
)
object
,
elements
,
element_count
);
hr
=
vertexdeclaration_init
(
object
,
elements
,
element_count
);
if
(
FAILED
(
hr
))
{
IWineD3DVertexDeclaration_Release
((
IWineD3DVertexDeclaration
*
)
object
);
*
ppVertexDeclaration
=
NULL
;
...
...
dlls/wined3d/vertexdeclaration.c
View file @
4330d20d
...
...
@@ -191,9 +191,9 @@ static BOOL declaration_element_valid_ffp(const WINED3DVERTEXELEMENT *element)
}
}
static
HRESULT
WINAPI
IWineD3DVertexDeclarationImpl_SetDeclaration
(
IWineD3DVertexDeclaration
*
iface
,
const
WINED3DVERTEXELEMENT
*
elements
,
UINT
element_count
)
{
IWineD3DVertexDeclarationImpl
*
This
=
(
IWineD3DVertexDeclarationImpl
*
)
iface
;
HRESULT
vertexdeclaration_init
(
IWineD3DVertexDeclarationImpl
*
This
,
const
WINED3DVERTEXELEMENT
*
elements
,
UINT
element_count
)
{
HRESULT
hr
=
WINED3D_OK
;
unsigned
int
i
;
char
isPreLoaded
[
MAX_STREAMS
];
...
...
@@ -271,5 +271,4 @@ const IWineD3DVertexDeclarationVtbl IWineD3DVertexDeclaration_Vtbl =
/* IWineD3DVertexDeclaration */
IWineD3DVertexDeclarationImpl_GetParent
,
IWineD3DVertexDeclarationImpl_GetDevice
,
IWineD3DVertexDeclarationImpl_SetDeclaration
};
dlls/wined3d/wined3d_private.h
View file @
4330d20d
...
...
@@ -1765,6 +1765,9 @@ typedef struct IWineD3DVertexDeclarationImpl {
extern
const
IWineD3DVertexDeclarationVtbl
IWineD3DVertexDeclaration_Vtbl
;
HRESULT
vertexdeclaration_init
(
IWineD3DVertexDeclarationImpl
*
This
,
const
WINED3DVERTEXELEMENT
*
elements
,
UINT
element_count
);
/*****************************************************************************
* IWineD3DStateBlock implementation structure
*/
...
...
include/wine/wined3d.idl
View file @
4330d20d
...
...
@@ -2758,10 +2758,6 @@ interface IWineD3DVertexDeclaration : IWineD3DBase
HRESULT
GetDevice
(
[
out
]
IWineD3DDevice
**
device
)
;
HRESULT
SetDeclaration
(
[
in
]
const
WINED3DVERTEXELEMENT
*
elements
,
[
in
]
UINT
element_count
)
;
}
[
...
...
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