Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public void invoke(int error, long description) {
final GLFWVidMode videoMode = glfwGetVideoMode(glfwGetPrimaryMonitor());
int requestWidth = settings.getWindowWidth();
int requestHeight = settings.getWindowHeight();
if (requestWidth <= 0 || requestWidth <= 0) {
if (requestWidth <= 0 || requestHeight <= 0) {
requestWidth = videoMode.width();
requestHeight = videoMode.height();
}
Expand Down Expand Up @@ -361,6 +361,8 @@ public void invoke(final long window, final int width, final int height) {
});

allowSwapBuffers = settings.isSwapBuffers();
oldFramebufferWidth = settings.getWidth();
oldFramebufferHeight = settings.getHeight();

// Create OpenCL
if (settings.isOpenCLSupport()) {
Expand Down