=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Avoid storing a clip plane pointer in struct wined3d_cs_set_clip_plane.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 21 11:21:10 CDT 2016
Module: wine
Branch: master
Commit: 11fe733fdc3b13e82c68bcc51042194f64a5d926
URL: http://source.winehq.org/git/wine.git/?a=commit;h=11fe733fdc3b13e82c68bcc51042194f64a5d926
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Sat Mar 19 10:35:51 2016 +0100
wined3d: Avoid storing a clip plane pointer in struct wined3d_cs_set_clip_plane.
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/cs.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c
index 965bcff..6809aa2 100644
--- a/dlls/wined3d/cs.c
+++ b/dlls/wined3d/cs.c
@@ -236,7 +236,7 @@ struct wined3d_cs_set_clip_plane
{
enum wined3d_cs_op opcode;
UINT plane_idx;
- const struct wined3d_vec4 *plane;
+ struct wined3d_vec4 plane;
};
struct wined3d_cs_set_material
@@ -876,7 +876,7 @@ static void wined3d_cs_exec_set_clip_plane(struct wined3d_cs *cs, const void *da
{
const struct wined3d_cs_set_clip_plane *op = data;
- cs->state.clip_planes[op->plane_idx] = *op->plane;
+ cs->state.clip_planes[op->plane_idx] = op->plane;
device_invalidate_state(cs->device, STATE_CLIPPLANE(op->plane_idx));
}
@@ -887,7 +887,7 @@ void wined3d_cs_emit_set_clip_plane(struct wined3d_cs *cs, UINT plane_idx, const
op = cs->ops->require_space(cs, sizeof(*op));
op->opcode = WINED3D_CS_OP_SET_CLIP_PLANE;
op->plane_idx = plane_idx;
- op->plane = plane;
+ op->plane = *plane;
cs->ops->submit(cs);
}
More information about the wine-cvs
mailing list