Web: Remove a few additional HLSL constructs with ENABLE_HLSL.
Saves about 3K.
This commit is contained in:
parent
13761069b5
commit
d4ed5158d1
6 changed files with 39 additions and 16 deletions
|
|
@ -142,6 +142,7 @@ int TPpContext::lFloatConst(int len, int ch, TPpToken* ppToken)
|
|||
ch = getChar();
|
||||
int firstDecimal = len;
|
||||
|
||||
#ifdef ENABLE_HLSL
|
||||
// 1.#INF or -1.#INF
|
||||
if (ch == '#' && (ifdepth > 0 || parseContext.intermediate.getSource() == EShSourceHlsl)) {
|
||||
if ((len < 2) ||
|
||||
|
|
@ -169,6 +170,7 @@ int TPpContext::lFloatConst(int len, int ch, TPpToken* ppToken)
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Consume leading-zero digits after the decimal point
|
||||
while (ch == '0') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue