=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Use the ARBfp ffp pipeline only if ARBfp is supported.

Alexandre Julliard julliard at winehq.org
Mon Feb 11 13:06:30 CST 2013


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Fri Feb  8 23:19:46 2013 +0100

wined3d: Use the ARBfp ffp pipeline only if ARBfp is supported.

---

 dlls/wined3d/directx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 7734cba..f42299e 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -2252,7 +2252,7 @@ static const struct fragment_pipeline *select_fragment_implementation(const stru
 {
     if (shader_backend_ops == &glsl_shader_backend)
         return &glsl_fragment_pipe;
-    if (shader_backend_ops == &arb_program_shader_backend)
+    if (shader_backend_ops == &arb_program_shader_backend && gl_info->supported[ARB_FRAGMENT_PROGRAM])
         return &arbfp_fragment_pipeline;
     if (gl_info->supported[ATI_FRAGMENT_SHADER])
         return &atifs_fragment_pipeline;




More information about the wine-cvs mailing list