Browse Source

Fixed imguiCube scissor.

Branimir Karadžić 11 years ago
parent
commit
cc16fa3aa3
2 changed files with 1 additions and 7 deletions
  1. 0 7
      examples/18-ibl/ibl.cpp
  2. 1 0
      examples/common/imgui/imgui.cpp

+ 0 - 7
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;

+ 1 - 0
examples/common/imgui/imgui.cpp

@@ -1732,6 +1732,7 @@ struct Imgui
 						   | BGFX_STATE_RGB_WRITE
 						   | BGFX_STATE_CULL_CW
 						   );
+			setCurrentScissor();
 			bgfx::submit(m_view);
 		}
 	}