Commit 71427548 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Remove the SDKVersion parameter to WineDirect3DCreate().

parent 99a50b53
...@@ -53,7 +53,7 @@ IDirect3D8* WINAPI Direct3DCreate8(UINT SDKVersion) { ...@@ -53,7 +53,7 @@ IDirect3D8* WINAPI Direct3DCreate8(UINT SDKVersion) {
object->lpVtbl = &Direct3D8_Vtbl; object->lpVtbl = &Direct3D8_Vtbl;
object->ref = 1; object->ref = 1;
object->WineD3D = WineDirect3DCreate(SDKVersion, 8, (IUnknown *)object); object->WineD3D = WineDirect3DCreate(8, (IUnknown *)object);
TRACE("Created Direct3D object @ %p, WineObj @ %p\n", object, object->WineD3D); TRACE("Created Direct3D object @ %p, WineObj @ %p\n", object, object->WineD3D);
LeaveCriticalSection(&d3d8_cs); LeaveCriticalSection(&d3d8_cs);
......
...@@ -48,7 +48,7 @@ IDirect3D9* WINAPI Direct3DCreate9(UINT SDKVersion) { ...@@ -48,7 +48,7 @@ IDirect3D9* WINAPI Direct3DCreate9(UINT SDKVersion) {
object->lpVtbl = &Direct3D9_Vtbl; object->lpVtbl = &Direct3D9_Vtbl;
object->ref = 1; object->ref = 1;
EnterCriticalSection(&d3d9_cs); EnterCriticalSection(&d3d9_cs);
object->WineD3D = WineDirect3DCreate(SDKVersion, 9, (IUnknown *)object); object->WineD3D = WineDirect3DCreate(9, (IUnknown *)object);
LeaveCriticalSection(&d3d9_cs); LeaveCriticalSection(&d3d9_cs);
TRACE("SDKVersion = %x, Created Direct3D object @ %p, WineObj @ %p\n", SDKVersion, object, object->WineD3D); TRACE("SDKVersion = %x, Created Direct3D object @ %p, WineObj @ %p\n", SDKVersion, object, object->WineD3D);
......
...@@ -206,7 +206,7 @@ DDRAW_Create(const GUID *guid, ...@@ -206,7 +206,7 @@ DDRAW_Create(const GUID *guid,
* but DirectDraw specific management, like DDSURFACEDESC and DDPIXELFORMAT * but DirectDraw specific management, like DDSURFACEDESC and DDPIXELFORMAT
* structure handling is handled in this lib. * structure handling is handled in this lib.
*/ */
wineD3D = pWineDirect3DCreate(0 /* SDKVersion */, 7 /* DXVersion */, (IUnknown *) This /* Parent */); wineD3D = pWineDirect3DCreate(7 /* DXVersion */, (IUnknown *) This /* Parent */);
if(!wineD3D) if(!wineD3D)
{ {
ERR("Failed to initialise WineD3D\n"); ERR("Failed to initialise WineD3D\n");
......
...@@ -48,7 +48,7 @@ wined3d_settings_t wined3d_settings = ...@@ -48,7 +48,7 @@ wined3d_settings_t wined3d_settings =
FALSE /* Disable multisampling for now due to Nvidia driver bugs which happens for some users */ FALSE /* Disable multisampling for now due to Nvidia driver bugs which happens for some users */
}; };
IWineD3D* WINAPI WineDirect3DCreate(UINT SDKVersion, UINT dxVersion, IUnknown *parent) { IWineD3D* WINAPI WineDirect3DCreate(UINT dxVersion, IUnknown *parent) {
IWineD3DImpl* object; IWineD3DImpl* object;
if (!InitAdapters()) { if (!InitAdapters()) {
......
...@@ -343,7 +343,7 @@ DECLARE_INTERFACE_(IWineD3D, IWineD3DBase) ...@@ -343,7 +343,7 @@ DECLARE_INTERFACE_(IWineD3D, IWineD3DBase)
#endif #endif
/* Define the main WineD3D entrypoint */ /* Define the main WineD3D entrypoint */
IWineD3D* WINAPI WineDirect3DCreate(UINT SDKVersion, UINT dxVersion, IUnknown *parent); IWineD3D* WINAPI WineDirect3DCreate(UINT dxVersion, IUnknown *parent);
/***************************************************************************** /*****************************************************************************
* IWineD3DDevice interface * IWineD3DDevice interface
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment