mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Fix shaderc consistency (#2553)
* shaderc: Initialize 'texFormat' in uniform. * glsl-optimizer: Fix consistency error of 'print_float'
This commit is contained in:
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user