[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libcvd-members] libcvd/progs video_play_source.cc
From: |
Edward Rosten |
Subject: |
[libcvd-members] libcvd/progs video_play_source.cc |
Date: |
Mon, 26 Oct 2009 18:09:52 +0000 |
CVSROOT: /cvsroot/libcvd
Module name: libcvd
Changes by: Edward Rosten <edrosten> 09/10/26 18:09:52
Modified files:
progs : video_play_source.cc
Log message:
double buffering.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/progs/video_play_source.cc?cvsroot=libcvd&r1=1.3&r2=1.4
Patches:
Index: video_play_source.cc
===================================================================
RCS file: /cvsroot/libcvd/libcvd/progs/video_play_source.cc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- video_play_source.cc 26 Nov 2008 22:15:44 -0000 1.3
+++ video_play_source.cc 26 Oct 2009 18:09:51 -0000 1.4
@@ -43,6 +43,7 @@
VideoBuffer<C> *buffer = open_video_source<C>(s);
VideoDisplay display(buffer->size());
+ glDrawBuffer(GL_BACK);
//while(buffer->frame_pending())
for(;;)
@@ -51,6 +52,8 @@
glDrawPixels(*frame);
buffer->put_frame(frame);
glFlush();
+
+ display.swap_buffers();
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libcvd-members] libcvd/progs video_play_source.cc,
Edward Rosten <=