diff options
| author | realtradam <[email protected]> | 2022-11-25 02:55:55 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-11-25 02:55:55 -0500 |
| commit | 4e7226ad1b081982e5cbed349edca1c5b0e1b779 (patch) | |
| tree | 6d497896f979e6bbcb0841d33d3a2815333cfef9 /src/window.cpp | |
| parent | 6e1d0c6a3f3699e44000f411cd93261c460f75a9 (diff) | |
| download | Ogle-4e7226ad1b081982e5cbed349edca1c5b0e1b779.tar.gz Ogle-4e7226ad1b081982e5cbed349edca1c5b0e1b779.zip | |
fixed Makefile, implemented bunnymark
Diffstat (limited to 'src/window.cpp')
| -rw-r--r-- | src/window.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp index adc51c0..98a7a60 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -28,6 +28,9 @@ namespace Window { glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); // 4.6 is highest glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); + glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE); + + glfwSwapInterval(1); window = glfwCreateWindow(width, height, title, NULL, NULL); if (window == NULL) @@ -44,7 +47,7 @@ namespace Window { return -1; } - glViewport(0, 0, 800, 600); + glViewport(0, 0, width, height); glfwSetFramebufferSizeCallback(window, framebuffer_size_callback); |
