[PATCH 2/5] wined3d: Don't run check_filter() on core contexts. (resend)

Matteo Bruni mbruni at codeweavers.com
Mon Jul 27 07:29:54 CDT 2015


The code uses glBegin() / glEnd() and other APIs removed from core
profile.
---
I had an attempt at extending draw_test_quad() for this test and quickly
decided it wasn't worth the effort...
---
 dlls/wined3d/utils.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 6c871f1..e57db99 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -2375,7 +2375,8 @@ static void init_format_filter_info(struct wined3d_gl_info *gl_info, enum wined3
         /* This was already handled by init_format_texture_info(). */
         return;
 
-    if(wined3d_settings.offscreen_rendering_mode != ORM_FBO)
+    if (wined3d_settings.offscreen_rendering_mode != ORM_FBO
+            || !gl_info->supported[WINED3D_GL_LEGACY_CONTEXT])
     {
         WARN("No FBO support, or no FBO ORM, guessing filter info from GL caps\n");
         if (vendor == HW_VENDOR_NVIDIA && gl_info->supported[ARB_TEXTURE_FLOAT])
-- 
2.3.6




More information about the wine-patches mailing list