From cc16fa3aa30d8f85f59c6daa2f04ffd8147255de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 4 Oct 2014 18:11:10 -0700 Subject: [PATCH] Fixed imguiCube scissor. --- examples/18-ibl/ibl.cpp | 7 ------- examples/common/imgui/imgui.cpp | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/examples/18-ibl/ibl.cpp b/examples/18-ibl/ibl.cpp index 18cd771ef..6e6cdeb56 100644 --- a/examples/18-ibl/ibl.cpp +++ b/examples/18-ibl/ibl.cpp @@ -32,11 +32,6 @@ struct Uniforms u_rgbSpec = bgfx::createUniform("u_rgbSpec", bgfx::UniformType::Uniform3fv); } - // Call this once at initialization. - void submitConstUniforms() - { - } - // Call this once per frame. void submitPerFrameUniforms() { @@ -513,8 +508,6 @@ int _main_(int /*_argc*/, char** /*_argv*/) float time = 0.0f; - s_uniforms.submitConstUniforms(); - int32_t leftScrollArea = 0; entry::MouseState mouseState; diff --git a/examples/common/imgui/imgui.cpp b/examples/common/imgui/imgui.cpp index 0339257fc..c0b2ca038 100644 --- a/examples/common/imgui/imgui.cpp +++ b/examples/common/imgui/imgui.cpp @@ -1732,6 +1732,7 @@ struct Imgui | BGFX_STATE_RGB_WRITE | BGFX_STATE_CULL_CW ); + setCurrentScissor(); bgfx::submit(m_view); } }