Matteo Bruni : wined3d: Disable the ARBfp blitter on core profile.

Alexandre Julliard julliard at winehq.org
Wed Sep 13 14:47:03 CDT 2017


Module: wine
Branch: master
Commit: 1378e623caa53e9f56d3e21c1dd35161e6d02814
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1378e623caa53e9f56d3e21c1dd35161e6d02814

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Tue Sep 12 21:22:29 2017 +0200

wined3d: Disable the ARBfp blitter on core profile.

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/arb_program_shader.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index 677a5d1..8f2f0e8 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -7910,6 +7910,9 @@ void wined3d_arbfp_blitter_create(struct wined3d_blitter **next, const struct wi
     if (!gl_info->supported[ARB_FRAGMENT_PROGRAM])
         return;
 
+    if (!gl_info->supported[WINED3D_GL_LEGACY_CONTEXT])
+        return;
+
     if (!(blitter = HeapAlloc(GetProcessHeap(), 0, sizeof(*blitter))))
     {
         ERR("Failed to allocate blitter.\n");




More information about the wine-cvs mailing list