mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
If program is position invariant, set VERT_BIT_POS in InputsRead field.
Fixes broken "OPTION NV_position_invariant".
This commit is contained in:
parent
d886423b3c
commit
fe6947002f
1 changed files with 4 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
* Mesa 3-D graphics library
|
||||
* Version: 6.5
|
||||
* Version: 6.5.2
|
||||
*
|
||||
* Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
|
||||
* Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
|
|
@ -1395,6 +1395,8 @@ _mesa_parse_nv_vertex_program(GLcontext *ctx, GLenum dstTarget,
|
|||
}
|
||||
program->Base.Instructions = newInst;
|
||||
program->Base.InputsRead = parseState.inputsRead;
|
||||
if (parseState.isPositionInvariant)
|
||||
program->Base.InputsRead |= VERT_BIT_POS;
|
||||
program->Base.NumInstructions = parseState.numInst;
|
||||
program->Base.OutputsWritten = parseState.outputsWritten;
|
||||
program->IsPositionInvariant = parseState.isPositionInvariant;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue