[PATCH 2/5] wined3d: Get rid of the mostly unused "pfd" variable in context_create().
Henri Verbeet
hverbeet at codeweavers.com
Thu Oct 13 14:43:06 CDT 2011
---
dlls/wined3d/context.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index e44ee81..61398e6 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -1294,7 +1294,6 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain,
const struct wined3d_gl_info *gl_info = &device->adapter->gl_info;
const struct wined3d_format *color_format;
struct wined3d_context *ret;
- PIXELFORMATDESCRIPTOR pfd;
BOOL auxBuffers = FALSE;
int pixel_format;
unsigned int s;
@@ -1363,7 +1362,6 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain,
goto out;
}
- DescribePixelFormat(hdc, pixel_format, sizeof(pfd), &pfd);
if (!context_set_pixel_format(gl_info, hdc, pixel_format))
{
ERR("Failed to set pixel format %d on device context %p.\n", pixel_format, hdc);
--
1.7.3.4
More information about the wine-patches
mailing list