bnoazx005 / TDEngine2

TDEngine2 is a cross-platform game engine
Apache License 2.0
18 stars 4 forks source link

[Bug] Shader preprocessor corrupts source files that contains floating point numbers #52

Closed bnoazx005 closed 4 years ago

bnoazx005 commented 4 years ago

Bug report

The shader preprocessor can't correctly process any source with long floating point numbers.

Environment

Win 10 (x64) / Visual Studio 2017 / TDEngine2-v0.4

Steps to reproduce the issue

  1. Try to compile shader source which contains any floating point number that's length is greater than 3 digit.

What's the expected result?

The preprocessor should correctly process any source with floaing point numbers in it.

What's the actual result?

The shader preprocessor corrupts a source file if it contains any floating point number that's length is greater than 3 digits after point.

bnoazx005 commented 4 years ago

Fixed in d810d7d4c1cd204b92c78b8b78060253da40d3e4