Web: Remove a few additional HLSL constructs with ENABLE_HLSL.

Saves about 3K.
This commit is contained in:
John Kessenich 2019-07-27 05:22:30 -06:00
parent 13761069b5
commit d4ed5158d1
6 changed files with 39 additions and 16 deletions

View file

@ -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') {