ARB prog parser: Revert part of previous change to constant parsing
The commit "ARP prog parser: Implement the spec, not what makes sense" broke the parsing of scalar constants. This commit reverts that part of that commit. Now vp_swizzle.c passes.
This commit is contained in:
@@ -1641,19 +1641,19 @@ paramConstScalarDecl: signedFloatConstant
|
||||
|
||||
paramConstScalarUse: REAL
|
||||
{
|
||||
$$.count = 4;
|
||||
$$.count = 1;
|
||||
$$.data[0] = $1;
|
||||
$$.data[1] = 0.0f;
|
||||
$$.data[2] = 0.0f;
|
||||
$$.data[3] = 1.0f;
|
||||
$$.data[1] = $1;
|
||||
$$.data[2] = $1;
|
||||
$$.data[3] = $1;
|
||||
}
|
||||
| INTEGER
|
||||
{
|
||||
$$.count = 4;
|
||||
$$.count = 1;
|
||||
$$.data[0] = (float) $1;
|
||||
$$.data[1] = 0.0f;
|
||||
$$.data[2] = 0.0f;
|
||||
$$.data[3] = 1.0f;
|
||||
$$.data[1] = (float) $1;
|
||||
$$.data[2] = (float) $1;
|
||||
$$.data[3] = (float) $1;
|
||||
}
|
||||
;
|
||||
|
||||
|
Reference in New Issue
Block a user