Skip to content

Commit 8ce4ab8

Browse files
kblaschkerevmischa
andauthored
Fixup: Typo in vendor/hlslparser/src/GLSLGenerator.cpp
Co-authored-by: Mischa Spiegelmock <[email protected]>
1 parent 68d9832 commit 8ce4ab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vendor/hlslparser/src/GLSLGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ void GLSLGenerator::OutputExpression(HLSLExpression* expression, const HLSLType*
10331033
* as expected on some drivers but not others, so we add
10341034
* the abs() call for compatibility across drivers.
10351035
*
1036-
* There's one special case though: if the exponent is a literal "1" (ot "1.0"),
1036+
* There's one special case though: if the exponent is a literal "1" (or "1.0"),
10371037
* don't use pow() at all, just return the base (arg 1) unchanged, even if negative.
10381038
* This is probably due to an HLSL compiler optimization which does the same thing.
10391039
* When not optimized, pow(x, 1) with a negative value of x would return NaN instead.

0 commit comments

Comments
 (0)