diff options
author | Brian <[email protected]> | 2007-02-16 09:59:27 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-02-16 09:59:27 -0700 |
commit | 00647c39deec87cfaff6e4a694020875340fdd09 (patch) | |
tree | 8f57910d303f9ae4e022ce7255ccf4ca94bb1a74 /src/mesa/shader/slang/slang_link.c | |
parent | c1771918042a26c8f5f27f9e28cf1890c04d891f (diff) |
remove dead code
Diffstat (limited to 'src/mesa/shader/slang/slang_link.c')
-rw-r--r-- | src/mesa/shader/slang/slang_link.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c index 1af8652d542..23977b7c2c2 100644 --- a/src/mesa/shader/slang/slang_link.c +++ b/src/mesa/shader/slang/slang_link.c @@ -532,23 +532,6 @@ _slang_link(GLcontext *ctx, else _mesa_problem(ctx, "unexpected shader target in slang_link()"); } -#if 00 - if (!vertProg || !fragProg) { - /* XXX is it legal to have one but not the other?? */ - /* XXX record error */ - shProg->LinkStatus = GL_FALSE; - return; - } - - /* XXX is this test used? */ - if (!vertProg->Base.Varying || !fragProg->Base.Varying) { - /* temporary */ - _mesa_problem(ctx, "vertex/fragment program lacks varying list!"); - abort(); - shProg->LinkStatus = GL_FALSE; - return; - } -#endif /* * Make copies of the vertex/fragment programs now since we'll be @@ -638,10 +621,6 @@ _slang_link(GLcontext *ctx, #endif } -#if 0 - shProg->LinkStatus = (shProg->VertexProgram && shProg->FragmentProgram); -#else shProg->LinkStatus = (shProg->VertexProgram || shProg->FragmentProgram); -#endif } |