Henri Verbeet : wined3d: Remove the unused currentPatch field from struct wined3d_device.
Alexandre Julliard
julliard at winehq.org
Wed Jul 6 13:31:07 CDT 2011
Module: wine
Branch: master
Commit: a7120866be753d2350c0c97b8133875597a76c13
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a7120866be753d2350c0c97b8133875597a76c13
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Tue Jul 5 22:30:56 2011 +0200
wined3d: Remove the unused currentPatch field from struct wined3d_device.
---
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,
More information about the wine-cvs
mailing list