aboutsummaryrefslogtreecommitdiff
path: root/BuddhaTest/src
diff options
context:
space:
mode:
Diffstat (limited to 'BuddhaTest/src')
-rw-r--r--BuddhaTest/src/BuddhaTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/BuddhaTest/src/BuddhaTest.cpp b/BuddhaTest/src/BuddhaTest.cpp
index b9629bf..37843c6 100644
--- a/BuddhaTest/src/BuddhaTest.cpp
+++ b/BuddhaTest/src/BuddhaTest.cpp
@@ -53,6 +53,9 @@ int main(int argc, char * argv[])
glfwMakeContextCurrent(window);
gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
+ //disable vsync
+ glfwSwapInterval(0);
+
//we have a context. Let's check if input is sane.
//calcualte buffer size, and make sure it's allowed by the driver.
const unsigned int pixelCount{(settings.imageWidth * bufferHeight)*3}; //*3 -> RGB