mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:18:52 +02:00
Android compilation fixes again
This commit is contained in:
parent
65f3408458
commit
d3114cbc67
2 changed files with 3 additions and 1 deletions
|
@ -749,7 +749,7 @@ void GLBackend::recycle() const {
|
||||||
Texture::KtxStorage::releaseOpenKtxFiles();
|
Texture::KtxStorage::releaseOpenKtxFiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLBackend::setCameraCorrection(const Mat4& correction, const Mat4& prevRenderView) {
|
void GLBackend::setCameraCorrection(const Mat4& correction, const Mat4& prevRenderView, bool reset) {
|
||||||
auto invCorrection = glm::inverse(correction);
|
auto invCorrection = glm::inverse(correction);
|
||||||
auto invPrevView = glm::inverse(prevRenderView);
|
auto invPrevView = glm::inverse(prevRenderView);
|
||||||
_transform._correction.prevView = (reset ? Mat4() : prevRenderView);
|
_transform._correction.prevView = (reset ? Mat4() : prevRenderView);
|
||||||
|
|
|
@ -303,6 +303,8 @@ protected:
|
||||||
struct CameraCorrection {
|
struct CameraCorrection {
|
||||||
Mat4 correction;
|
Mat4 correction;
|
||||||
Mat4 correctionInverse;
|
Mat4 correctionInverse;
|
||||||
|
Mat4 prevView;
|
||||||
|
Mat4 prevViewInverse;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct TransformStageState {
|
struct TransformStageState {
|
||||||
|
|
Loading…
Reference in a new issue