mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
More CR comments; rename function
This commit is contained in:
parent
1088d248e3
commit
d7a9354b37
4 changed files with 3 additions and 4 deletions
|
@ -706,7 +706,7 @@ bool OpenGLDisplayPlugin::setDisplayTexture(const QString& name) {
|
|||
// Note: it is the caller's responsibility to keep the network texture in cache.
|
||||
if (name.isEmpty()) {
|
||||
_displayTexture.reset();
|
||||
clearPreviewFlag();
|
||||
onDisplayTextureReset();
|
||||
return true;
|
||||
}
|
||||
auto textureCache = DependencyManager::get<TextureCache>();
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
}
|
||||
|
||||
virtual bool setDisplayTexture(const QString& name) override;
|
||||
virtual bool clearPreviewFlag() override { return false; };
|
||||
virtual bool onDisplayTextureReset() { return false; };
|
||||
QImage getScreenshot(float aspectRatio = 0.0f) const override;
|
||||
|
||||
float presentRate() const override;
|
||||
|
|
|
@ -46,7 +46,7 @@ public:
|
|||
|
||||
float stutterRate() const override;
|
||||
|
||||
virtual bool clearPreviewFlag() override { _clearPreviewFlag = true; return true; };
|
||||
virtual bool onDisplayTextureReset() override { _clearPreviewFlag = true; return true; };
|
||||
|
||||
protected:
|
||||
virtual void hmdPresent() = 0;
|
||||
|
|
|
@ -186,7 +186,6 @@ public:
|
|||
|
||||
// Set the texture to display on the monitor and return true, if allowed. Empty string resets.
|
||||
virtual bool setDisplayTexture(const QString& name) { return false; }
|
||||
virtual bool clearPreviewFlag() { return false; };
|
||||
|
||||
virtual float devicePixelRatio() { return 1.0f; }
|
||||
// Rate at which we render frames
|
||||
|
|
Loading…
Reference in a new issue