Commit a7120866 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Remove the unused currentPatch field from struct wined3d_device.

parent 0df3db37
...@@ -4943,12 +4943,10 @@ HRESULT CDECL wined3d_device_draw_rect_patch(struct wined3d_device *device, UINT ...@@ -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; old_primitive_type = device->stateBlock->state.gl_primitive_type;
device->stateBlock->state.gl_primitive_type = GL_TRIANGLES; device->stateBlock->state.gl_primitive_type = GL_TRIANGLES;
wined3d_device_draw_primitive_strided(device, patch->numSegs[0] * patch->numSegs[1] * 2 * 3, &patch->strided); 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->stateBlock->state.gl_primitive_type = old_primitive_type;
device->currentPatch = NULL;
/* Destroy uncached patches */ /* Destroy uncached patches */
if (!handle) if (!handle)
......
...@@ -1742,7 +1742,6 @@ struct wined3d_device ...@@ -1742,7 +1742,6 @@ struct wined3d_device
#define PATCHMAP_SIZE 43 #define PATCHMAP_SIZE 43
#define PATCHMAP_HASHFUNC(x) ((x) % PATCHMAP_SIZE) /* Primitive and simple function */ #define PATCHMAP_HASHFUNC(x) ((x) % PATCHMAP_SIZE) /* Primitive and simple function */
struct list patches[PATCHMAP_SIZE]; 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, HRESULT device_clear_render_targets(struct wined3d_device *device, UINT rt_count, const struct wined3d_fb_state *fb,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment