diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 571c7f538..8e3f72c6c 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -467,7 +467,7 @@ namespace bgfx for (const EmbeddedShader::Data* esd = es->data; RendererType::Count != esd->type; ++esd) { if (_type == esd->type - && 0 < esd->size) + && 1 < esd->size) { return createShader(makeRef(esd->data, esd->size) ); } diff --git a/tools/texturev/fs_texture_array.bin.h b/tools/texturev/fs_texture_array.bin.h index c0f0c80a5..ad7cfa7c9 100644 --- a/tools/texturev/fs_texture_array.bin.h +++ b/tools/texturev/fs_texture_array.bin.h @@ -22,7 +22,7 @@ static const uint8_t fs_texture_array_glsl[329] = 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x78, 0x29, 0x20, 0x2a, 0x20, 0x76, 0x5f, 0x63, 0x6f, 0x6c, 0x6f, // rams.x) * v_colo 0x72, 0x30, 0x29, 0x3b, 0x0a, 0x7d, 0x0a, 0x0a, 0x00, // r0);.}... }; -static const uint8_t fs_texture_array_dx9[] = {}; +static const uint8_t fs_texture_array_dx9[] = { 0 }; static const uint8_t fs_texture_array_dx11[488] = { 0x46, 0x53, 0x48, 0x04, 0x01, 0x83, 0xf2, 0xe1, 0x02, 0x00, 0x08, 0x75, 0x5f, 0x70, 0x61, 0x72, // FSH........u_par