Skip to content

Commit

Permalink
Minor fixups from linting
Browse files Browse the repository at this point in the history
adamkewley committed Jan 16, 2025
1 parent ba9e951 commit a9b7287
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion liboscar/Graphics/OpenGL/Gl.cpp
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ void osc::gl::compile_from_source(const ShaderHandle& shader_handle, std::string
{
OSC_ASSERT_ALWAYS(not shader_src.empty() && "empty source code passed to the shader compiler");
const GLchar* shader_src_ptr = shader_src.data();
const GLint shader_src_length = static_cast<GLint>(shader_src.size());
const auto shader_src_length = static_cast<GLint>(shader_src.size());
glShaderSource(shader_handle.get(), 1, &shader_src_ptr, &shader_src_length);
glCompileShader(shader_handle.get());

2 changes: 1 addition & 1 deletion liboscar/Graphics/Scene/SceneCache.cpp
Original file line number Diff line number Diff line change
@@ -333,7 +333,7 @@ const void* osc::SceneCache::try_get(const std::type_info& type_info) const

void osc::SceneCache::insert(const std::type_info& type_info, std::shared_ptr<void> ptr)
{
impl_->insert(type_info, ptr);
impl_->insert(type_info, std::move(ptr));
}

const MeshBasicMaterial& osc::SceneCache::basic_material()

0 comments on commit a9b7287

Please sign in to comment.