wined3d: Advertise multisampling only when supported.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Matteo Bruni 2021-03-17 13:35:21 +01:00 committed by Alexandre Julliard
parent cb45e91b24
commit 2683c34c90
1 changed files with 3 additions and 1 deletions

View File

@ -3071,7 +3071,9 @@ static void query_internal_format(struct wined3d_adapter *adapter,
query_view_class(format); query_view_class(format);
if (format->internal && format->f.flags[WINED3D_GL_RES_TYPE_RB] if (format->internal && format->f.flags[WINED3D_GL_RES_TYPE_RB]
& (WINED3DFMT_FLAG_RENDERTARGET | WINED3DFMT_FLAG_DEPTH_STENCIL)) & (WINED3DFMT_FLAG_RENDERTARGET | WINED3DFMT_FLAG_DEPTH_STENCIL)
&& (gl_info->supported[ARB_FRAMEBUFFER_OBJECT] || gl_info->supported[EXT_FRAMEBUFFER_MULTISAMPLE])
&& wined3d_settings.offscreen_rendering_mode == ORM_FBO)
{ {
if (gl_info->supported[ARB_INTERNALFORMAT_QUERY]) if (gl_info->supported[ARB_INTERNALFORMAT_QUERY])
{ {