From 9c4a452bb22d0938e3eab709822b44eaaa9f24af Mon Sep 17 00:00:00 2001 From: Elias Batek Date: Wed, 11 Sep 2024 03:58:21 +0200 Subject: [PATCH] Suppress sdpy's auto-OpenGL-viewport in PixmapPresenter --- pixmappresenter.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pixmappresenter.d b/pixmappresenter.d index 84ecb8a..90d9a9b 100644 --- a/pixmappresenter.d +++ b/pixmappresenter.d @@ -535,6 +535,7 @@ final class OpenGl3PixmapRenderer : PixmapRenderer { public void setup(PresenterObjectsContainer* pro) { _poc = pro; + _poc.window.suppressAutoOpenglViewport = true; _poc.window.visibleForTheFirstTime = &this.visibleForTheFirstTime; _poc.window.redrawOpenGlScene = &this.redrawOpenGlScene; } @@ -726,6 +727,7 @@ final class OpenGl1PixmapRenderer : PixmapRenderer { public void setup(PresenterObjectsContainer* poc) { _poc = poc; + _poc.window.suppressAutoOpenglViewport = true; _poc.window.visibleForTheFirstTime = &this.visibleForTheFirstTime; _poc.window.redrawOpenGlScene = &this.redrawOpenGlScene; }