Skip to content

Commit

Permalink
Merge branch 'master' into MultiLayerTileDatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Dec 24, 2024
2 parents ae983c7 + ffa0edc commit b468d4c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vsg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ set(LIBRARIES PUBLIC
)

if (${VSG_SUPPORTS_ShaderCompiler})
list(APPEND LIBRARIES PRIVATE glslang::glslang glslang::glslang-default-resource-limits glslang::SPIRV)
list(INSERT LIBRARIES 0 PRIVATE glslang::glslang glslang::glslang-default-resource-limits glslang::SPIRV)
endif()

# Check for std::atomic
Expand Down
2 changes: 1 addition & 1 deletion src/vsg/io/VSG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ bool VSG::write(const vsg::Object* object, const vsg::Path& filename, ref_ptr<co
}
else if (ext == ".vsga" || ext == ".vsgt")
{
std::ofstream fout(filename);
std::ofstream fout(filename, std::ios::out | std::ios::binary);
writeHeader(fout, FormatInfo{ASCII, version});

vsg::AsciiOutput output(fout, options);
Expand Down
2 changes: 2 additions & 0 deletions src/vsg/utils/PolytopeIntersector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ PolytopeIntersector::PolytopeIntersector(const Camera& camera, double xMin, doub
eyespace.push_back(pl * projectionMatrix);
}

_polytopeStack.push_back(eyespace);

vsg::Polytope worldspace;
for (auto& pl : eyespace)
{
Expand Down
1 change: 1 addition & 0 deletions src/vsg/utils/ShaderCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ bool ShaderCompiler::compile(ShaderStages& shaders, const std::vector<std::strin
}
}

vsg_shader->module->code.clear();
glslang::GlslangToSpv(*(program->getIntermediate((EShLanguage)eshl_stage)), vsg_shader->module->code, &logger, &spvOptions);
}
}
Expand Down

0 comments on commit b468d4c

Please sign in to comment.