Remove the win32 debug channel, misc cleanup of debugging code.
[wine/dcerpc.git] / dlls / d3d8 / d3d8_main.c
blobc73b83823ff20f492757f295f1e76fee2c6c141b
1 /* Direct3D 8
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #include "config.h"
21 #include <stdarg.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "wingdi.h"
26 #include "winuser.h"
27 #include "wine/debug.h"
29 #include "d3d8.h"
30 #include "d3d8_private.h"
32 WINE_DEFAULT_DEBUG_CHANNEL(d3d);
34 int num_lock = 0;
35 void (*wine_tsx11_lock_ptr)(void) = NULL;
36 void (*wine_tsx11_unlock_ptr)(void) = NULL;
38 HRESULT WINAPI D3D8GetSWInfo(void)
40 FIXME("(void): stub\n");
41 return 0;
44 void WINAPI DebugSetMute(void)
46 /* nothing to do */
49 IDirect3D8* WINAPI Direct3DCreate8(UINT SDKVersion)
52 IDirect3D8Impl *object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirect3D8Impl));
54 object->lpVtbl = &Direct3D8_Vtbl;
55 object->direct3d8 = object;
56 object->ref = 1;
58 TRACE("SDKVersion = %x, Created Direct3D object at %p\n", SDKVersion, object);
60 return (IDirect3D8 *)object;
63 /* At process attach */
64 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
66 TRACE("D3D8 DLLMain Reason=%ld\n", fdwReason);
67 if (fdwReason == DLL_PROCESS_ATTACH)
69 HMODULE mod;
71 DisableThreadLibraryCalls(hInstDLL);
73 mod = GetModuleHandleA( "x11drv.dll" );
74 if (mod)
76 wine_tsx11_lock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_lock" );
77 wine_tsx11_unlock_ptr = (void *)GetProcAddress( mod, "wine_tsx11_unlock" );
80 return TRUE;