[PATCH 4/5] wined3d: Remove the unused currentPatch field from struct wined3d_device.
Henri Verbeet
hverbeet at codeweavers.com
Tue Jul 5 15:30:56 CDT 2011
---
dlls/wined3d/device.c | 2 --
dlls/wined3d/wined3d_private.h | 1 -
2 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 7d9dd9f..f9b41d0 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 ea5aa50..4984d16 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,
--
1.7.3.4
More information about the wine-patches
mailing list