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
bc2cf94d
Commit
bc2cf94d
authored
Jan 02, 2003
by
Christian Costa
Committed by
Alexandre Julliard
Jan 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reimplemented SwapTextureHandles.
parent
ae10e9c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
24 deletions
+33
-24
main.c
dlls/ddraw/d3ddevice/main.c
+23
-14
main.h
dlls/ddraw/d3ddevice/main.h
+8
-8
mesa.c
dlls/ddraw/d3ddevice/mesa.c
+2
-2
No files found.
dlls/ddraw/d3ddevice/main.c
View file @
bc2cf94d
...
...
@@ -901,12 +901,20 @@ Main_IDirect3DDeviceImpl_3_2T_SetLightState(LPDIRECT3DDEVICE3 iface,
}
HRESULT
WINAPI
Main_IDirect3DDeviceImpl_2_SwapTextureHandles
(
LPDIRECT3DDEVICE2
iface
,
LPDIRECT3DTEXTURE2
lpD3DTex1
,
LPDIRECT3DTEXTURE2
lpD3DTex2
)
Main_IDirect3DDeviceImpl_2_
1T_
SwapTextureHandles
(
LPDIRECT3DDEVICE2
iface
,
LPDIRECT3DTEXTURE2
lpD3DTex1
,
LPDIRECT3DTEXTURE2
lpD3DTex2
)
{
ICOM_THIS_FROM
(
IDirect3DDeviceImpl
,
IDirect3DDevice2
,
iface
);
FIXME
(
"(%p/%p)->(%p,%p): stub!
\n
"
,
This
,
iface
,
lpD3DTex1
,
lpD3DTex2
);
IDirectDrawSurfaceImpl
tmp
,
*
surf1
,
*
surf2
;
TRACE
(
"(%p/%p)->(%p,%p):
\n
"
,
This
,
iface
,
lpD3DTex1
,
lpD3DTex2
);
surf1
=
ICOM_OBJECT
(
IDirectDrawSurfaceImpl
,
IDirect3DTexture2
,
lpD3DTex1
);
surf2
=
ICOM_OBJECT
(
IDirectDrawSurfaceImpl
,
IDirect3DTexture2
,
lpD3DTex2
);
tmp
=
*
surf1
;
*
surf1
=
*
surf2
;
*
surf2
=
tmp
;
return
DD_OK
;
}
...
...
@@ -995,16 +1003,6 @@ Main_IDirect3DDeviceImpl_1_Initialize(LPDIRECT3DDEVICE iface,
}
HRESULT
WINAPI
Main_IDirect3DDeviceImpl_1_SwapTextureHandles
(
LPDIRECT3DDEVICE
iface
,
LPDIRECT3DTEXTURE
lpD3Dtex1
,
LPDIRECT3DTEXTURE
lpD3DTex2
)
{
ICOM_THIS_FROM
(
IDirect3DDeviceImpl
,
IDirect3DDevice
,
iface
);
FIXME
(
"(%p/%p)->(%p,%p): stub!
\n
"
,
This
,
iface
,
lpD3Dtex1
,
lpD3DTex2
);
return
DD_OK
;
}
HRESULT
WINAPI
Main_IDirect3DDeviceImpl_1_CreateExecuteBuffer
(
LPDIRECT3DDEVICE
iface
,
LPD3DEXECUTEBUFFERDESC
lpDesc
,
LPDIRECT3DEXECUTEBUFFER
*
lplpDirect3DExecuteBuffer
,
...
...
@@ -1670,6 +1668,17 @@ Thunk_IDirect3DDeviceImpl_1_GetCaps(LPDIRECT3DDEVICE iface,
}
HRESULT
WINAPI
Thunk_IDirect3DDeviceImpl_1_SwapTextureHandles
(
LPDIRECT3DDEVICE
iface
,
LPDIRECT3DTEXTURE
lpD3DTex1
,
LPDIRECT3DTEXTURE
lpD3DTex2
)
{
TRACE
(
"(%p)->(%p,%p) thunking to IDirect3DDevice2 interface.
\n
"
,
iface
,
lpD3DTex1
,
lpD3DTex2
);
return
IDirect3DDevice2_SwapTextureHandles
(
COM_INTERFACE_CAST
(
IDirect3DDeviceImpl
,
IDirect3DDevice
,
IDirect3DDevice2
,
iface
),
COM_INTERFACE_CAST
(
IDirectDrawSurfaceImpl
,
IDirect3DTexture
,
IDirect3DTexture2
,
lpD3DTex1
),
COM_INTERFACE_CAST
(
IDirectDrawSurfaceImpl
,
IDirect3DTexture
,
IDirect3DTexture2
,
lpD3DTex2
));
}
HRESULT
WINAPI
Thunk_IDirect3DDeviceImpl_2_GetStats
(
LPDIRECT3DDEVICE2
iface
,
LPD3DSTATS
lpD3DStats
)
{
...
...
dlls/ddraw/d3ddevice/main.h
View file @
bc2cf94d
...
...
@@ -345,9 +345,9 @@ Main_IDirect3DDeviceImpl_3_2T_SetLightState(LPDIRECT3DDEVICE3 iface,
DWORD
dwLightState
);
HRESULT
WINAPI
Main_IDirect3DDeviceImpl_2_SwapTextureHandles
(
LPDIRECT3DDEVICE2
iface
,
LPDIRECT3DTEXTURE2
lpD3DTex1
,
LPDIRECT3DTEXTURE2
lpD3DTex2
);
Main_IDirect3DDeviceImpl_2_
1T_
SwapTextureHandles
(
LPDIRECT3DDEVICE2
iface
,
LPDIRECT3DTEXTURE2
lpD3DTex1
,
LPDIRECT3DTEXTURE2
lpD3DTex2
);
HRESULT
WINAPI
Main_IDirect3DDeviceImpl_2_1T_EnumTextureFormats
(
LPDIRECT3DDEVICE2
iface
,
...
...
@@ -393,11 +393,6 @@ Main_IDirect3DDeviceImpl_1_Initialize(LPDIRECT3DDEVICE iface,
LPD3DDEVICEDESC
lpD3DDVDesc
);
HRESULT
WINAPI
Main_IDirect3DDeviceImpl_1_SwapTextureHandles
(
LPDIRECT3DDEVICE
iface
,
LPDIRECT3DTEXTURE
lpD3Dtex1
,
LPDIRECT3DTEXTURE
lpD3DTex2
);
HRESULT
WINAPI
Main_IDirect3DDeviceImpl_1_CreateExecuteBuffer
(
LPDIRECT3DDEVICE
iface
,
LPD3DEXECUTEBUFFERDESC
lpDesc
,
LPDIRECT3DEXECUTEBUFFER
*
lplpDirect3DExecuteBuffer
,
...
...
@@ -680,6 +675,11 @@ Thunk_IDirect3DDeviceImpl_1_GetCaps(LPDIRECT3DDEVICE iface,
LPD3DDEVICEDESC
lpD3DHELDevDesc
);
HRESULT
WINAPI
Thunk_IDirect3DDeviceImpl_1_SwapTextureHandles
(
LPDIRECT3DDEVICE
iface
,
LPDIRECT3DTEXTURE
lpD3Dtex1
,
LPDIRECT3DTEXTURE
lpD3DTex2
);
HRESULT
WINAPI
Thunk_IDirect3DDeviceImpl_2_GetStats
(
LPDIRECT3DDEVICE2
iface
,
LPD3DSTATS
lpD3DStats
);
...
...
dlls/ddraw/d3ddevice/mesa.c
View file @
bc2cf94d
...
...
@@ -1697,7 +1697,7 @@ ICOM_VTABLE(IDirect3DDevice2) VTABLE_IDirect3DDevice2 =
XCAST
(
AddRef
)
Thunk_IDirect3DDeviceImpl_2_AddRef
,
XCAST
(
Release
)
Thunk_IDirect3DDeviceImpl_2_Release
,
XCAST
(
GetCaps
)
Thunk_IDirect3DDeviceImpl_2_GetCaps
,
XCAST
(
SwapTextureHandles
)
Main_IDirect3DDeviceImpl_2_SwapTextureHandles
,
XCAST
(
SwapTextureHandles
)
Main_IDirect3DDeviceImpl_2_
1T_
SwapTextureHandles
,
XCAST
(
GetStats
)
Thunk_IDirect3DDeviceImpl_2_GetStats
,
XCAST
(
AddViewport
)
Thunk_IDirect3DDeviceImpl_2_AddViewport
,
XCAST
(
DeleteViewport
)
Thunk_IDirect3DDeviceImpl_2_DeleteViewport
,
...
...
@@ -1747,7 +1747,7 @@ ICOM_VTABLE(IDirect3DDevice) VTABLE_IDirect3DDevice =
XCAST
(
Release
)
Thunk_IDirect3DDeviceImpl_1_Release
,
XCAST
(
Initialize
)
Main_IDirect3DDeviceImpl_1_Initialize
,
XCAST
(
GetCaps
)
Thunk_IDirect3DDeviceImpl_1_GetCaps
,
XCAST
(
SwapTextureHandles
)
Main
_IDirect3DDeviceImpl_1_SwapTextureHandles
,
XCAST
(
SwapTextureHandles
)
Thunk
_IDirect3DDeviceImpl_1_SwapTextureHandles
,
XCAST
(
CreateExecuteBuffer
)
GL_IDirect3DDeviceImpl_1_CreateExecuteBuffer
,
XCAST
(
GetStats
)
Thunk_IDirect3DDeviceImpl_1_GetStats
,
XCAST
(
Execute
)
Main_IDirect3DDeviceImpl_1_Execute
,
...
...
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