From a7120866be753d2350c0c97b8133875597a76c13 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 5 Jul 2011 22:30:56 +0200 Subject: [PATCH] wined3d: Remove the unused currentPatch field from struct wined3d_device. --- dlls/wined3d/device.c | 2 -- dlls/wined3d/wined3d_private.h | 1 - 2 files changed, 3 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 7d9dd9f18ba..f9b41d0d48e 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -4943,12 +4943,10 @@ HRESULT CDECL wined3d_device_draw_rect_patch(struct wined3d_device *device, UINT } } - device->currentPatch = patch; old_primitive_type = device->stateBlock->state.gl_primitive_type; device->stateBlock->state.gl_primitive_type = GL_TRIANGLES; wined3d_device_draw_primitive_strided(device, patch->numSegs[0] * patch->numSegs[1] * 2 * 3, &patch->strided); device->stateBlock->state.gl_primitive_type = old_primitive_type; - device->currentPatch = NULL; /* Destroy uncached patches */ if (!handle) diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index ea5aa50b7a1..4984d16ccd8 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -1742,7 +1742,6 @@ struct wined3d_device #define PATCHMAP_SIZE 43 #define PATCHMAP_HASHFUNC(x) ((x) % PATCHMAP_SIZE) /* Primitive and simple function */ struct list patches[PATCHMAP_SIZE]; - struct WineD3DRectPatch *currentPatch; }; HRESULT device_clear_render_targets(struct wined3d_device *device, UINT rt_count, const struct wined3d_fb_state *fb,