Skip to content

Commit

Permalink
Add trivial (identity) geometry shader step.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrynsun committed Oct 12, 2015
1 parent 63ca78f commit 4b25876
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4b25876

Please sign in to comment.