wined3d: Remove the unused currentPatch field from struct wined3d_device.

This commit is contained in:
Henri Verbeet 2011-07-05 22:30:56 +02:00 committed by Alexandre Julliard
parent 0df3db37ac
commit a7120866be
2 changed files with 0 additions and 3 deletions

View File

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

View File

@ -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,