Module: wine
Branch: master
Commit: 1d647283d5eeba840eb4de76ddb6fd33b7083388
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1d647283d5eeba840eb4de76d…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Mon Aug 3 08:06:50 2009 +0200
wined3d: Don't use the GL texture flags to determine if a format is a depth stencil in CheckDepthStencilCapability().
The OpenGL implementation might not support ARB_depth_texture, but that
doesn't mean we can't use the format for the depth buffer.
---
dlls/wined3d/directx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index e6fb1c7..81f81db 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -2698,7 +2698,7 @@ static BOOL CheckDepthStencilCapability(struct WineD3DAdapter *adapter,
int it=0;
/* Only allow depth/stencil formats */
- if (!(ds_format_desc->Flags & (WINED3DFMT_FLAG_DEPTH | WINED3DFMT_FLAG_STENCIL))) return FALSE;
+ if (!(ds_format_desc->depth_size || ds_format_desc->stencil_size)) return FALSE;
/* Walk through all WGL pixel formats to find a match */
for (it = 0; it < adapter->nCfgs; ++it)
Module: wine
Branch: master
Commit: 43bfb240add6c722993801bbbb82b4244b3535a4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=43bfb240add6c722993801bbb…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Mon Aug 3 08:06:49 2009 +0200
wined3d: Use the context's current render target the get the swapchain drawable size.
"surface" might point to the frontbuffer while we're rendering to the
backbuffer, etc.
---
dlls/wined3d/swapchain.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index 0994c6d..c0e0457 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -404,7 +404,7 @@ WineD3DContext *IWineD3DSwapChainImpl_CreateContextForThread(IWineD3DSwapChain *
void get_drawable_size_swapchain(struct WineD3DContext *context, UINT *width, UINT *height)
{
- IWineD3DSurfaceImpl *surface = (IWineD3DSurfaceImpl *)context->surface;
+ IWineD3DSurfaceImpl *surface = (IWineD3DSurfaceImpl *)context->current_rt;
/* The drawable size of an onscreen drawable is the surface size.
* (Actually: The window size, but the surface is created in window size) */
*width = surface->currentDesc.Width;
Module: wine
Branch: master
Commit: 028b763f2f51e78084129975e6333271dd2f861c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=028b763f2f51e78084129975e…
Author: Ken Thomases <ken(a)codeweavers.com>
Date: Fri Jul 31 16:25:48 2009 -0500
ntdll: For Darwin/Mac OS X, use legacy getdirentries if 64-bit inodes enabled.
Fixes building on Snow Leopard.
---
dlls/ntdll/directory.c | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c
index bccfba6..0cd531e 100644
--- a/dlls/ntdll/directory.c
+++ b/dlls/ntdll/directory.c
@@ -1274,6 +1274,30 @@ done:
#elif defined HAVE_GETDIRENTRIES
+#if _DARWIN_FEATURE_64_BIT_INODE
+
+/* Darwin doesn't provide a version of getdirentries with support for 64-bit
+ * inodes. When 64-bit inodes are enabled, the getdirentries symbol is mapped
+ * to _getdirentries_is_not_available_when_64_bit_inodes_are_in_effect so that
+ * we get link errors if we try to use it. We still need getdirentries, but we
+ * don't need it to support 64-bit inodes. So, we use the legacy getdirentries
+ * with 32-bit inodes. We have to be careful to use a corresponding dirent
+ * structure, too.
+ */
+int darwin_legacy_getdirentries(int, char *, int, long *) __asm("_getdirentries");
+#define getdirentries darwin_legacy_getdirentries
+
+struct darwin_legacy_dirent {
+ __uint32_t d_ino;
+ __uint16_t d_reclen;
+ __uint8_t d_type;
+ __uint8_t d_namlen;
+ char d_name[__DARWIN_MAXNAMLEN + 1];
+};
+#define dirent darwin_legacy_dirent
+
+#endif
+
/***********************************************************************
* wine_getdirentries
*
@@ -1438,6 +1462,12 @@ done:
if (data != local_buffer) RtlFreeHeap( GetProcessHeap(), 0, data );
return res;
}
+
+#if _DARWIN_FEATURE_64_BIT_INODE
+#undef getdirentries
+#undef dirent
+#endif
+
#endif /* HAVE_GETDIRENTRIES */