H. Verbeet : wined3d: Add WINED3DCREATE flags and use them.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Feb 16 07:08:35 CST 2007
Module: wine
Branch: master
Commit: bd5488cda976e56a06b8a74c3f4ec9d50daa0b96
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bd5488cda976e56a06b8a74c3f4ec9d50daa0b96
Author: H. Verbeet <hverbeet at gmail.com>
Date: Thu Feb 15 22:36:55 2007 +0100
wined3d: Add WINED3DCREATE flags and use them.
---
dlls/wined3d/context.c | 2 +-
include/wine/wined3d_types.h | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index cb82405..603ce49 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -596,7 +596,7 @@ static inline void SetupForBlit(IWineD3DDeviceImpl *This, WineD3DContext *contex
*
*****************************************************************************/
void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextUsage usage) {
- DWORD tid = This->createParms.BehaviorFlags & D3DCREATE_MULTITHREADED ? GetCurrentThreadId() : 0;
+ DWORD tid = This->createParms.BehaviorFlags & WINED3DCREATE_MULTITHREADED ? GetCurrentThreadId() : 0;
int i;
DWORD dirtyState, idx;
BYTE shift;
diff --git a/include/wine/wined3d_types.h b/include/wine/wined3d_types.h
index dbbd63f..7723bf6 100644
--- a/include/wine/wined3d_types.h
+++ b/include/wine/wined3d_types.h
@@ -1565,4 +1565,14 @@ typedef enum _WINED3DSURFTYPE {
/* SetPrivateData flags */
#define WINED3DSPD_IUNKNOWN 0x00000001
+/* IWineD3D::CreateDevice behaviour flags */
+#define WINED3DCREATE_FPU_PRESERVE 0x00000002
+#define WINED3DCREATE_MULTITHREADED 0x00000004
+#define WINED3DCREATE_PUREDEVICE 0x00000010
+#define WINED3DCREATE_SOFTWARE_VERTEXPROCESSING 0x00000020
+#define WINED3DCREATE_HARDWARE_VERTEXPROCESSING 0x00000040
+#define WINED3DCREATE_MIXED_VERTEXPROCESSING 0x00000080
+#define WINED3DCREATE_DISABLE_DRIVER_MANAGEMENT 0x00000100
+#define WINED3DCREATE_ADAPTERGROUP_DEVICE 0x00000200
+
#endif
More information about the wine-cvs
mailing list