diff options
author | Michal Krol <[email protected]> | 2004-10-21 14:06:18 +0000 |
---|---|---|
committer | Michal Krol <[email protected]> | 2004-10-21 14:06:18 +0000 |
commit | ed60e19d8a5ad0d22e3164ebfe8b056a352106d4 (patch) | |
tree | d0cba69cdbc9e6a33420a5e87f8025a46eb72aa3 /src/mesa/shader/arbvertparse.c | |
parent | 718ba9773bf570b9f5e2cf2a98a6ccf4980da537 (diff) |
remove redundant check of parsed program target
Diffstat (limited to 'src/mesa/shader/arbvertparse.c')
-rw-r--r-- | src/mesa/shader/arbvertparse.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/mesa/shader/arbvertparse.c b/src/mesa/shader/arbvertparse.c index d0e776b47c1..fb6a642b647 100644 --- a/src/mesa/shader/arbvertparse.c +++ b/src/mesa/shader/arbvertparse.c @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.1 + * Version: 6.2 * * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * @@ -206,20 +206,6 @@ _mesa_parse_arb_vertex_program(GLcontext * ctx, GLenum target, program->OutputsWritten = ap.OutputsWritten; program->Parameters = ap.Parameters; - /* Eh.. we parsed something that wasn't a vertex program. doh! */ - /* this wont happen any more */ -/* - if (ap.Base.Target != GL_VERTEX_PROGRAM_ARB) - { - program->Instructions = (struct vp_instruction *) _mesa_malloc ( - sizeof(struct vp_instruction) ); - program->Instructions[0].Opcode = VP_OPCODE_END; - - _mesa_error (ctx, GL_INVALID_OPERATION, "Parsed a non-vertex program as a vertex program"); - return; - } -*/ - program->Instructions = ap.VPInstructions; #if DEBUG_VP |