Matteo Bruni : wined3d: Advertise multisampling only when supported.

Alexandre Julliard julliard at winehq.org
Thu Mar 18 16:43:54 CDT 2021


Module: wine
Branch: master
Commit: 2683c34c90c7a83f6e7e87932c5caab1fa518603
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2683c34c90c7a83f6e7e87932c5caab1fa518603

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Wed Mar 17 13:35:21 2021 +0100

wined3d: Advertise multisampling only when supported.

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/utils.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 11284d19811..dc7823b9534 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -3071,7 +3071,9 @@ static void query_internal_format(struct wined3d_adapter *adapter,
     query_view_class(format);
 
     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])
         {




More information about the wine-cvs mailing list