Suppress sdpy's auto-OpenGL-viewport in PixmapPresenter

This commit is contained in:
Elias Batek 2024-09-11 03:58:21 +02:00
parent 2e05986ade
commit 9c4a452bb2
1 changed files with 2 additions and 0 deletions

View File

@ -535,6 +535,7 @@ final class OpenGl3PixmapRenderer : PixmapRenderer {
public void setup(PresenterObjectsContainer* pro) { public void setup(PresenterObjectsContainer* pro) {
_poc = pro; _poc = pro;
_poc.window.suppressAutoOpenglViewport = true;
_poc.window.visibleForTheFirstTime = &this.visibleForTheFirstTime; _poc.window.visibleForTheFirstTime = &this.visibleForTheFirstTime;
_poc.window.redrawOpenGlScene = &this.redrawOpenGlScene; _poc.window.redrawOpenGlScene = &this.redrawOpenGlScene;
} }
@ -726,6 +727,7 @@ final class OpenGl1PixmapRenderer : PixmapRenderer {
public void setup(PresenterObjectsContainer* poc) { public void setup(PresenterObjectsContainer* poc) {
_poc = poc; _poc = poc;
_poc.window.suppressAutoOpenglViewport = true;
_poc.window.visibleForTheFirstTime = &this.visibleForTheFirstTime; _poc.window.visibleForTheFirstTime = &this.visibleForTheFirstTime;
_poc.window.redrawOpenGlScene = &this.redrawOpenGlScene; _poc.window.redrawOpenGlScene = &this.redrawOpenGlScene;
} }