wined3d: Get rid of the mostly unused "pfd" variable in context_create().

This commit is contained in:
Henri Verbeet 2011-10-13 21:43:06 +02:00 committed by Alexandre Julliard
parent a4ee6226ae
commit 67b097cd6e
1 changed files with 0 additions and 2 deletions

View File

@ -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);