mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 21:33:00 +02:00
Merge pull request #9716 from zzmp/fix/ubuntu
Compile interface in Ubuntu
This commit is contained in:
commit
3a0e13387d
4 changed files with 6 additions and 8 deletions
|
@ -112,7 +112,8 @@ TransferJob::TransferJob(const GL45VariableAllocationTexture& parent, uint16_t s
|
|||
|
||||
_transferLambda = [=] {
|
||||
_parent.copyMipFaceLinesFromTexture(targetMip, face, transferDimensions, lineOffset, format, type, _buffer.data());
|
||||
_buffer.swap(std::vector<uint8_t>());
|
||||
std::vector<uint8_t> emptyVector;
|
||||
_buffer.swap(emptyVector);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <list>
|
||||
#include <vector>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
|
||||
/* KTX Spec:
|
||||
|
|
|
@ -17,9 +17,7 @@ namespace ktx {
|
|||
class ReaderException: public std::exception {
|
||||
public:
|
||||
ReaderException(const std::string& explanation) : _explanation("KTX deserialization error: " + explanation) {}
|
||||
const char* what() const override {
|
||||
return _explanation.c_str();
|
||||
}
|
||||
const char* what() const noexcept override { return _explanation.c_str(); }
|
||||
private:
|
||||
const std::string _explanation;
|
||||
};
|
||||
|
@ -179,4 +177,4 @@ namespace ktx {
|
|||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,9 +16,7 @@ namespace ktx {
|
|||
class WriterException : public std::exception {
|
||||
public:
|
||||
WriterException(const std::string& explanation) : _explanation("KTX serialization error: " + explanation) {}
|
||||
const char* what() const override {
|
||||
return _explanation.c_str();
|
||||
}
|
||||
const char* what() const noexcept override { return _explanation.c_str(); }
|
||||
private:
|
||||
const std::string _explanation;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue