Skip to content

Commit 4b25876

Browse files
committed
Add trivial (identity) geometry shader step.
1 parent 63ca78f commit 4b25876

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ int main(int argc, char **argv) {
3838
}
3939

4040
void mainLoop() {
41+
int iters = 0;
4142
while (!glfwWindowShouldClose(window)) {
43+
iters++;
44+
if (iters > 500) {
45+
exit(1);
46+
}
4247
glfwPollEvents();
4348
runCuda();
4449

@@ -69,7 +74,6 @@ void mainLoop() {
6974
//-------------------------------
7075
//---------RUNTIME STUFF---------
7176
//-------------------------------
72-
7377
void runCuda() {
7478
// Map OpenGL buffer object for writing from CUDA on a single GPU
7579
// No data is moved (Win & Linux). When mapped to CUDA, OpenGL should not use this buffer

0 commit comments

Comments
 (0)