Skip to content

Commit

Permalink
replace for-loop with while-loop
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch authored and christian-rauch committed Feb 17, 2025
1 parent 556788c commit 5902055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/SimpleVideo/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void VideoSample(const std::string uri)

unsigned char* img = new unsigned char[video.SizeBytes()];

for(int frame=0; !pangolin::ShouldQuit(); ++frame)
while( !pangolin::ShouldQuit() )
{
glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);

Expand Down

0 comments on commit 5902055

Please sign in to comment.