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
c042f935
Commit
c042f935
authored
May 23, 2010
by
David Adam
Committed by
Alexandre Julliard
May 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Do not redefine already defined guids.
parent
64489872
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
meshbuilder.c
dlls/d3drm/meshbuilder.c
+6
-12
No files found.
dlls/d3drm/meshbuilder.c
View file @
c042f935
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
#include "winbase.h"
#include "winbase.h"
#include "wingdi.h"
#include "wingdi.h"
#include "dxfile.h"
#include "dxfile.h"
#include "rmxfguid.h"
#include "d3drm_private.h"
#include "d3drm_private.h"
#include "d3drm.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3drm
);
WINE_DEFAULT_DEBUG_CHANNEL
(
d3drm
);
...
@@ -61,12 +61,6 @@ typedef struct {
...
@@ -61,12 +61,6 @@ typedef struct {
static
const
struct
IDirect3DRMMeshBuilderVtbl
Direct3DRMMeshBuilder_Vtbl
;
static
const
struct
IDirect3DRMMeshBuilderVtbl
Direct3DRMMeshBuilder_Vtbl
;
static
const
GUID
GUID_Header
=
{
0x3D82AB43
,
0x62DA
,
0x11CF
,
{
0xAB
,
0x39
,
0x00
,
0x20
,
0xAF
,
0x71
,
0xE4
,
0x33
}
};
static
const
GUID
GUID_Mesh
=
{
0x3D82AB44
,
0x62DA
,
0x11CF
,
{
0xAB
,
0x39
,
0x00
,
0x20
,
0xAF
,
0x71
,
0xE4
,
0x33
}
};
static
const
GUID
GUID_MeshTextureCoords
=
{
0xF6F23F40
,
0x7686
,
0x11CF
,
{
0x8F
,
0x52
,
0x00
,
0x40
,
0x33
,
0x35
,
0x94
,
0xA3
}
};
static
const
GUID
GUID_MeshMaterialList
=
{
0xF6F23F42
,
0x7686
,
0x11CF
,
{
0x8F
,
0x52
,
0x00
,
0x40
,
0x33
,
0x35
,
0x94
,
0xA3
}
};
static
const
GUID
GUID_MeshNormals
=
{
0xF6F23F43
,
0x7686
,
0x11CF
,
{
0x8F
,
0x52
,
0x00
,
0x40
,
0x33
,
0x35
,
0x94
,
0xA3
}
};
static
char
templates
[]
=
{
static
char
templates
[]
=
{
"xof 0302txt 0064"
"xof 0302txt 0064"
"template Header"
"template Header"
...
@@ -489,7 +483,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilderImpl_Load(IDirect3DRMMeshBuilder* if
...
@@ -489,7 +483,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilderImpl_Load(IDirect3DRMMeshBuilder* if
TRACE
(
"Found object type whose GUID = %s
\n
"
,
debugstr_guid
(
pGuid
));
TRACE
(
"Found object type whose GUID = %s
\n
"
,
debugstr_guid
(
pGuid
));
if
(
!
IsEqualGUID
(
pGuid
,
&
GUID_
Header
))
if
(
!
IsEqualGUID
(
pGuid
,
&
TID_DXFILE
Header
))
{
{
ret
=
D3DRMERR_BADFILE
;
ret
=
D3DRMERR_BADFILE
;
goto
end
;
goto
end
;
...
@@ -524,7 +518,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilderImpl_Load(IDirect3DRMMeshBuilder* if
...
@@ -524,7 +518,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilderImpl_Load(IDirect3DRMMeshBuilder* if
TRACE
(
"Found object type whose GUID = %s
\n
"
,
debugstr_guid
(
pGuid
));
TRACE
(
"Found object type whose GUID = %s
\n
"
,
debugstr_guid
(
pGuid
));
if
(
!
IsEqualGUID
(
pGuid
,
&
GUID_
Mesh
))
if
(
!
IsEqualGUID
(
pGuid
,
&
TID_D3DRM
Mesh
))
{
{
ret
=
D3DRMERR_NOTFOUND
;
ret
=
D3DRMERR_NOTFOUND
;
goto
end
;
goto
end
;
...
@@ -571,7 +565,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilderImpl_Load(IDirect3DRMMeshBuilder* if
...
@@ -571,7 +565,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilderImpl_Load(IDirect3DRMMeshBuilder* if
FIXME
(
"toto: Found object type whose GUID = %s
\n
"
,
debugstr_guid
(
pGuid
));
FIXME
(
"toto: Found object type whose GUID = %s
\n
"
,
debugstr_guid
(
pGuid
));
if
(
!
IsEqualGUID
(
pGuid
,
&
GUID_
MeshNormals
))
if
(
!
IsEqualGUID
(
pGuid
,
&
TID_D3DRM
MeshNormals
))
{
{
DWORD
tmp
;
DWORD
tmp
;
...
@@ -587,7 +581,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilderImpl_Load(IDirect3DRMMeshBuilder* if
...
@@ -587,7 +581,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilderImpl_Load(IDirect3DRMMeshBuilder* if
This
->
pNormals
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
nb_normals
*
sizeof
(
D3DVECTOR
));
This
->
pNormals
=
HeapAlloc
(
GetProcessHeap
(),
0
,
This
->
nb_normals
*
sizeof
(
D3DVECTOR
));
memcpy
(
This
->
pNormals
,
ptr
+
sizeof
(
DWORD
),
This
->
nb_normals
*
sizeof
(
D3DVECTOR
));
memcpy
(
This
->
pNormals
,
ptr
+
sizeof
(
DWORD
),
This
->
nb_normals
*
sizeof
(
D3DVECTOR
));
}
}
else
if
(
!
IsEqualGUID
(
pGuid
,
&
GUID_
MeshTextureCoords
))
else
if
(
!
IsEqualGUID
(
pGuid
,
&
TID_D3DRM
MeshTextureCoords
))
{
{
hr
=
IDirectXFileData_GetData
(
pData
,
NULL
,
&
size
,
(
void
**
)
&
ptr
);
hr
=
IDirectXFileData_GetData
(
pData
,
NULL
,
&
size
,
(
void
**
)
&
ptr
);
if
(
hr
!=
DXFILE_OK
)
if
(
hr
!=
DXFILE_OK
)
...
@@ -601,7 +595,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilderImpl_Load(IDirect3DRMMeshBuilder* if
...
@@ -601,7 +595,7 @@ static HRESULT WINAPI IDirect3DRMMeshBuilderImpl_Load(IDirect3DRMMeshBuilder* if
memcpy
(
This
->
pCoords2d
,
ptr
+
sizeof
(
DWORD
),
This
->
nb_coords2d
*
sizeof
(
Coords2d
));
memcpy
(
This
->
pCoords2d
,
ptr
+
sizeof
(
DWORD
),
This
->
nb_coords2d
*
sizeof
(
Coords2d
));
}
}
else
if
(
!
IsEqualGUID
(
pGuid
,
&
GUID_
MeshMaterialList
))
else
if
(
!
IsEqualGUID
(
pGuid
,
&
TID_D3DRM
MeshMaterialList
))
{
{
FIXME
(
"MeshMaterialList not supported yet, ignoring...
\n
"
);
FIXME
(
"MeshMaterialList not supported yet, ignoring...
\n
"
);
}
}
...
...
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