Fix shaderc consistency (#2553)

* shaderc: Initialize 'texFormat' in uniform.

* glsl-optimizer: Fix consistency error of 'print_float'
This commit is contained in:
C.Even
2021-07-20 08:06:56 -05:00
committed by GitHub
parent 2f1e14ea82
commit 13e6100681
2 changed files with 2 additions and 1 deletions

View File

@@ -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])

View File

@@ -91,6 +91,7 @@ namespace bgfx
, regCount(0)
, texComponent(0)
, texDimension(0)
, texFormat(0)
{
}