From 4b25876512c9f52da79384adc26150ee9fc003fc Mon Sep 17 00:00:00 2001 From: Terry Sun <terrynsun@gmail.com> Date: Mon, 12 Oct 2015 00:23:01 -0400 Subject: [PATCH] Add trivial (identity) geometry shader step. --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 35d9966..287e71d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -38,7 +38,12 @@ int main(int argc, char **argv) { } void mainLoop() { + int iters = 0; while (!glfwWindowShouldClose(window)) { + iters++; + if (iters > 500) { + exit(1); + } glfwPollEvents(); runCuda(); @@ -69,7 +74,6 @@ void mainLoop() { //------------------------------- //---------RUNTIME STUFF--------- //------------------------------- - void runCuda() { // Map OpenGL buffer object for writing from CUDA on a single GPU // No data is moved (Win & Linux). When mapped to CUDA, OpenGL should not use this buffer