From bac06fb95418667d0eea1c95f7f21f57b6fbfd97 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 25 Jan 2023 19:43:59 -0500 Subject: [PATCH] opengl resize bug on windows --- simpledisplay.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simpledisplay.d b/simpledisplay.d index 46e90c9..1020050 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -3727,6 +3727,7 @@ private: version(without_opengl) {} else if(openglMode == OpenGlOptions.yes && resizability == Resizability.automaticallyScaleIfPossible) { + import std.stdio; writeln(width, " ", height); setAsCurrentOpenGlContextNT(); glViewport(0, 0, width, height); } @@ -12318,7 +12319,7 @@ version(Windows) { } } - updateOpenglViewportIfNeeded(width, height); + updateOpenglViewportIfNeeded(_width, _height); if(resizability != Resizability.automaticallyScaleIfPossible) if(windowResized !is null)