From efc6516a009a65979e24e6530d405862dd7d364f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 7 Apr 2014 22:58:30 -0700 Subject: [PATCH] Fixed compiler warning. --- src/bgfx.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 09fc8db5..90d5b507 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -484,7 +484,7 @@ namespace bgfx m_decl.add(Attrib::Color0, 4, AttribType::Uint8, true); m_decl.end(); - ShaderHandle vsh; + ShaderHandle vsh = BGFX_INVALID_HANDLE; const Memory* fragMem[BGFX_CONFIG_MAX_FRAME_BUFFER_ATTACHMENTS]; if (BX_ENABLED(BGFX_CONFIG_RENDERER_DIRECT3D11) ) @@ -503,6 +503,10 @@ namespace bgfx fragMem[2] = makeRef(fs_clear2_glsl, sizeof(fs_clear2_glsl) ); fragMem[3] = makeRef(fs_clear3_glsl, sizeof(fs_clear3_glsl) ); } + else + { + BX_CHECK(false, "You should not be here!"); + } for (uint32_t ii = 0; ii < BGFX_CONFIG_MAX_FRAME_BUFFER_ATTACHMENTS; ++ii) {