wined3d: Remove the unused currentPatch field from struct wined3d_device.
This commit is contained in:
parent
0df3db37ac
commit
a7120866be
|
@ -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
|
||||||
#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,
|
||||||
|
|
Loading…
Reference in New Issue