wined3d: Store max_clip_distances in struct d3d_info.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6d543d237c
commit
d3da2400e6
|
@ -3651,6 +3651,7 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter,
|
|||
adapter->fragment_pipe = select_fragment_implementation(gl_info, adapter->shader_backend);
|
||||
|
||||
d3d_info->limits.max_rt_count = gl_info->limits.buffers;
|
||||
d3d_info->limits.max_clip_distances = gl_info->limits.user_clip_distances;
|
||||
d3d_info->limits.pointsize_max = gl_info->limits.pointsize_max;
|
||||
|
||||
adapter->shader_backend->shader_get_caps(gl_info, &shader_caps);
|
||||
|
|
|
@ -1762,7 +1762,7 @@ HRESULT CDECL wined3d_device_set_clip_plane(struct wined3d_device *device,
|
|||
{
|
||||
TRACE("device %p, plane_idx %u, plane %p.\n", device, plane_idx, plane);
|
||||
|
||||
if (plane_idx >= device->adapter->gl_info.limits.user_clip_distances)
|
||||
if (plane_idx >= device->adapter->d3d_info.limits.max_clip_distances)
|
||||
{
|
||||
TRACE("Application has requested clipplane this device doesn't support.\n");
|
||||
return WINED3DERR_INVALIDCALL;
|
||||
|
@ -1790,7 +1790,7 @@ HRESULT CDECL wined3d_device_get_clip_plane(const struct wined3d_device *device,
|
|||
{
|
||||
TRACE("device %p, plane_idx %u, plane %p.\n", device, plane_idx, plane);
|
||||
|
||||
if (plane_idx >= device->adapter->gl_info.limits.user_clip_distances)
|
||||
if (plane_idx >= device->adapter->d3d_info.limits.max_clip_distances)
|
||||
{
|
||||
TRACE("Application has requested clipplane this device doesn't support.\n");
|
||||
return WINED3DERR_INVALIDCALL;
|
||||
|
|
|
@ -165,6 +165,7 @@ struct wined3d_d3d_limits
|
|||
unsigned int active_light_count;
|
||||
|
||||
unsigned int max_rt_count;
|
||||
unsigned int max_clip_distances;
|
||||
float pointsize_max;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue