Required to know the size exact size of the plane.
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
if (unlikely(This->is_recording))
state->changed.ucp |= 1 << Index;
else
- nine_context_set_clip_plane(This, Index, pPlane);
+ nine_context_set_clip_plane(This, Index, (struct nine_clipplane *)pPlane);
return D3D_OK;
}
void
nine_context_set_clip_plane(struct NineDevice9 *device,
DWORD Index,
- const float *pPlane)
+ struct nine_clipplane *pPlane)
{
struct nine_context *context = &device->context;
if (src->changed.ucp)
for (i = 0; i < PIPE_MAX_CLIP_PLANES; ++i)
if (src->changed.ucp & (1 << i))
- nine_context_set_clip_plane(device, i, &src->clip.ucp[i][0]);
+ nine_context_set_clip_plane(device, i, (struct nine_clipplane*)&src->clip.ucp[i][0]);
if (!(src->changed.group & NINE_STATE_FF))
return;
struct pipe_transfer *transfers_so[4];
};
+struct nine_clipplane {
+ float plane[4];
+};
/* map D3DRS -> NINE_STATE_x
*/
extern const uint32_t nine_render_state_group[NINED3DRS_COUNT];
void
nine_context_set_clip_plane(struct NineDevice9 *device,
DWORD Index,
- const float *pPlane);
+ struct nine_clipplane *pPlane);
void
nine_context_set_swvp(struct NineDevice9 *device,