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
94b3fdde
Commit
94b3fdde
authored
Apr 24, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d: Pass the cube face to Create*Texture's surface creation callback.
parent
7ca369d9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
6 deletions
+13
-6
d3d8_private.h
dlls/d3d8/d3d8_private.h
+2
-1
device.c
dlls/d3d8/device.c
+2
-1
d3d9_private.h
dlls/d3d9/d3d9_private.h
+2
-1
device.c
dlls/d3d9/device.c
+2
-1
ddraw.c
dlls/ddraw/ddraw.c
+2
-0
device.c
dlls/wined3d/device.c
+2
-2
wined3d_interface.h
include/wine/wined3d_interface.h
+1
-0
No files found.
dlls/d3d8/d3d8_private.h
View file @
94b3fdde
...
...
@@ -626,7 +626,8 @@ size_t convert_to_wined3d_declaration(const DWORD *d3d8_elements, DWORD *d3d8_el
/* Callbacks */
extern
HRESULT
WINAPI
D3D8CB_CreateSurface
(
IUnknown
*
device
,
IUnknown
*
pSuperior
,
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
Format
,
DWORD
Usage
,
WINED3DPOOL
Pool
,
UINT
Level
,
IWineD3DSurface
**
ppSurface
,
HANDLE
*
pSharedHandle
);
WINED3DCUBEMAP_FACES
Face
,
IWineD3DSurface
**
ppSurface
,
HANDLE
*
pSharedHandle
);
extern
HRESULT
WINAPI
D3D8CB_CreateVolume
(
IUnknown
*
pDevice
,
IUnknown
*
pSuperior
,
UINT
Width
,
UINT
Height
,
UINT
Depth
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
DWORD
Usage
,
...
...
dlls/d3d8/device.c
View file @
94b3fdde
...
...
@@ -1769,7 +1769,8 @@ const IDirect3DDevice8Vtbl Direct3DDevice8_Vtbl =
/* Internal function called back during the CreateDevice to create a render target */
HRESULT
WINAPI
D3D8CB_CreateSurface
(
IUnknown
*
device
,
IUnknown
*
pSuperior
,
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
Format
,
DWORD
Usage
,
WINED3DPOOL
Pool
,
UINT
Level
,
IWineD3DSurface
**
ppSurface
,
HANDLE
*
pSharedHandle
)
{
WINED3DCUBEMAP_FACES
Face
,
IWineD3DSurface
**
ppSurface
,
HANDLE
*
pSharedHandle
)
{
HRESULT
res
=
D3D_OK
;
IDirect3DSurface8Impl
*
d3dSurface
=
NULL
;
...
...
dlls/d3d9/d3d9_private.h
View file @
94b3fdde
...
...
@@ -552,7 +552,8 @@ typedef struct IDirect3DQuery9Impl {
/* Callbacks */
extern
HRESULT
WINAPI
D3D9CB_CreateSurface
(
IUnknown
*
device
,
IUnknown
*
pSuperior
,
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
Format
,
DWORD
Usage
,
WINED3DPOOL
Pool
,
UINT
Level
,
IWineD3DSurface
**
ppSurface
,
HANDLE
*
pSharedHandle
);
WINED3DCUBEMAP_FACES
Face
,
IWineD3DSurface
**
ppSurface
,
HANDLE
*
pSharedHandle
);
extern
HRESULT
WINAPI
D3D9CB_CreateVolume
(
IUnknown
*
pDevice
,
IUnknown
*
pSuperior
,
UINT
Width
,
UINT
Height
,
UINT
Depth
,
WINED3DFORMAT
Format
,
WINED3DPOOL
Pool
,
DWORD
Usage
,
...
...
dlls/d3d9/device.c
View file @
94b3fdde
...
...
@@ -1085,7 +1085,8 @@ const IDirect3DDevice9Vtbl Direct3DDevice9_Vtbl =
/* Internal function called back during the CreateDevice to create a render target */
HRESULT
WINAPI
D3D9CB_CreateSurface
(
IUnknown
*
device
,
IUnknown
*
pSuperior
,
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
Format
,
DWORD
Usage
,
WINED3DPOOL
Pool
,
UINT
Level
,
IWineD3DSurface
**
ppSurface
,
HANDLE
*
pSharedHandle
)
{
WINED3DCUBEMAP_FACES
Face
,
IWineD3DSurface
**
ppSurface
,
HANDLE
*
pSharedHandle
)
{
HRESULT
res
=
D3D_OK
;
IDirect3DSurface9Impl
*
d3dSurface
=
NULL
;
...
...
dlls/ddraw/ddraw.c
View file @
94b3fdde
...
...
@@ -1578,6 +1578,7 @@ IDirectDrawImpl_RecreateAllSurfaces(IDirectDrawImpl *This)
* Format: The requested format
* Usage, Pool: D3DUSAGE and D3DPOOL of the surface
* level: The mipmap level
* Face: The cube map face type
* Surface: Pointer to pass the created surface back at
* SharedHandle: NULL
*
...
...
@@ -1591,6 +1592,7 @@ D3D7CB_CreateSurface(IUnknown *device,
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
Format
,
DWORD
Usage
,
WINED3DPOOL
Pool
,
UINT
level
,
WINED3DCUBEMAP_FACES
Face
,
IWineD3DSurface
**
Surface
,
HANDLE
*
SharedHandle
)
{
...
...
dlls/wined3d/device.c
View file @
94b3fdde
...
...
@@ -851,7 +851,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateTexture(IWineD3DDevice *iface, U
for
(
i
=
0
;
i
<
object
->
baseTexture
.
levels
;
i
++
)
{
/* use the callback to create the texture surface */
hr
=
D3DCB_CreateSurface
(
This
->
parent
,
parent
,
tmpW
,
tmpH
,
Format
,
Usage
,
Pool
,
i
,
&
object
->
surfaces
[
i
],
NULL
);
hr
=
D3DCB_CreateSurface
(
This
->
parent
,
parent
,
tmpW
,
tmpH
,
Format
,
Usage
,
Pool
,
i
,
WINED3DCUBEMAP_FACE_POSITIVE_X
,
&
object
->
surfaces
[
i
],
NULL
);
if
(
hr
!=
WINED3D_OK
||
(
(
IWineD3DSurfaceImpl
*
)
object
->
surfaces
[
i
])
->
Flags
&
SFLAG_OVERSIZE
)
{
FIXME
(
"Failed to create surface %p
\n
"
,
object
);
/* clean up */
...
...
@@ -1046,7 +1046,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateCubeTexture(IWineD3DDevice *iface
for
(
j
=
0
;
j
<
6
;
j
++
)
{
hr
=
D3DCB_CreateSurface
(
This
->
parent
,
parent
,
tmpW
,
tmpW
,
Format
,
Usage
,
Pool
,
i
/* Level */
,
&
object
->
surfaces
[
j
][
i
],
pSharedHandle
);
i
/* Level */
,
j
,
&
object
->
surfaces
[
j
][
i
],
pSharedHandle
);
if
(
hr
!=
WINED3D_OK
)
{
/* clean up */
...
...
include/wine/wined3d_interface.h
View file @
94b3fdde
...
...
@@ -209,6 +209,7 @@ typedef HRESULT WINAPI (*D3DCB_CREATESURFACEFN) (IUnknown *pDevice,
DWORD
Usage
,
WINED3DPOOL
Pool
,
UINT
Level
,
WINED3DCUBEMAP_FACES
Face
,
struct
IWineD3DSurface
**
ppSurface
,
HANDLE
*
pSharedHandle
);
...
...
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