Fix Linux build issues

This commit is contained in:
Tim Sylvester
2023-10-03 22:24:45 +00:00
parent bdf043b913
commit ec3f927f83
2 changed files with 3 additions and 2 deletions

View File

@@ -122,10 +122,10 @@ void DrawableGL::bindUniformBuffers() const {
const auto& uniformBuffer = getUniformBuffers().get(element.first);
if (!uniformBuffer) {
using namespace std::string_literals;
const auto tileID = getTileID() ? util::toString(*getTileID()) : "<no tile>";
const auto tileIDStr = getTileID() ? util::toString(*getTileID()) : "<no tile>";
Log::Error(Event::General,
"bindUniformBuffers: UBO "s + std::string(StringIndexer::get(element.first)) +
" not found for " + util::toString(getID()) + " / " + getName() + " / " + tileID +
" not found for " + util::toString(getID()) + " / " + getName() + " / " + tileIDStr +
". skipping.");
assert(false);
continue;

View File

@@ -397,6 +397,7 @@ platform::GLenum Enum<gfx::TexturePixelType>::sizedFor<>(const gfx::TexturePixel
default:
break;
}
break;
}
case gfx::TextureChannelDataType::Float: {
switch (value) {