* shaderc: Initialize 'texFormat' in uniform. * glsl-optimizer: Fix consistency error of 'print_float'
@@ -1344,7 +1344,7 @@ void print_float (string_buffer& buffer, float f)
// that so compiler output matches.
if (posE != NULL)
{
- if((posE[1] == '+' || posE[1] == '-') && posE[2] == '0')
+ if((posE[1] == '+' || posE[1] == '-') && posE[2] == '0' && posE[3] == '0')
char* p = posE+2;
while (p[0])
@@ -91,6 +91,7 @@ namespace bgfx
, regCount(0)
, texComponent(0)
, texDimension(0)
+ , texFormat(0)
}