diff options
author | Eric Anholt <[email protected]> | 2010-04-29 13:35:37 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-04-29 13:37:27 -0700 |
commit | 07a248a3664e4cd63c98ff3478bdd9b1e45c1398 (patch) | |
tree | e039920b159144ccfd549cc1863f8834337278b3 /src/mesa/shader/slang | |
parent | f7cf8b4658aadb0a125f1e1fb9d6cb73d44902b0 (diff) |
mesa: Don't overwrite a driver's shader infolog with generic failure message.
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r-- | src/mesa/shader/slang/slang_link.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c index f71fde1d727..47bc9339716 100644 --- a/src/mesa/shader/slang/slang_link.c +++ b/src/mesa/shader/slang/slang_link.c @@ -1028,7 +1028,10 @@ _slang_link(GLcontext *ctx, if (!vertNotify || !fragNotify) { /* driver rejected one/both of the vertex/fragment programs */ - link_error(shProg, "Vertex and/or fragment program rejected by driver\n"); + if (!shProg->InfoLog) { + link_error(shProg, + "Vertex and/or fragment program rejected by driver\n"); + } } else { shProg->LinkStatus = (shProg->VertexProgram || shProg->FragmentProgram); |