Skip to content

Commit

Permalink
opengl resize bug on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdruppe committed Jan 26, 2023
1 parent 0b145ed commit 0019a7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion simpledisplay.d
Original file line number Diff line number Diff line change
Expand Up @@ -3716,6 +3716,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);
}
Expand Down Expand Up @@ -12271,7 +12272,7 @@ version(Windows) {
}
}

updateOpenglViewportIfNeeded(width, height);
updateOpenglViewportIfNeeded(_width, _height);

if(resizability != Resizability.automaticallyScaleIfPossible)
if(windowResized !is null)
Expand Down

0 comments on commit 0019a7c

Please sign in to comment.