Commit 160a063c authored by Matteo Bruni's avatar Matteo Bruni Committed by Michael Stefaniuc

wined3d: Limit the number of WINED3D_MULTISAMPLE_NON_MASKABLE quality levels reported.

Signed-off-by: 's avatarMatteo Bruni <mbruni@codeweavers.com> Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit a25c47f5) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent 731a32be
......@@ -4426,7 +4426,7 @@ HRESULT CDECL wined3d_check_device_multisample_type(const struct wined3d *wined3
if (quality_levels)
{
if (multisample_type == WINED3D_MULTISAMPLE_NON_MASKABLE)
*quality_levels = gl_info->limits.samples;
*quality_levels = wined3d_log2i(gl_info->limits.samples);
else
*quality_levels = 1;
}
......
......@@ -2887,7 +2887,7 @@ static void surface_prepare_rb(struct wined3d_surface *surface, const struct win
* AMD has a similar feature called Enhanced Quality Anti-Aliasing (EQAA),
* but it does not have an equivalent OpenGL extension. */
if (surface->resource.multisample_type == WINED3D_MULTISAMPLE_NON_MASKABLE)
samples = surface->resource.multisample_quality;
samples = 1u << (surface->resource.multisample_quality + 1);
else
samples = surface->resource.multisample_type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment