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

This commit is contained in:
Stefan Dösinger 2013-02-08 23:19:46 +01:00 committed by Alexandre Julliard
parent 0ca4ad0d2f
commit 425eab4cf9
1 changed files with 1 additions and 1 deletions

View File

@ -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;