Mercurial > mplayer.hg
comparison libvo/vo_gl.c @ 26841:3822def2c61d
Reorder flip_page to make moving around do_render call easier
author | reimar |
---|---|
date | Sun, 25 May 2008 11:11:32 +0000 |
parents | ea6c5ea1aa64 |
children | c675462d66d9 |
comparison
equal
deleted
inserted
replaced
26840:ea6c5ea1aa64 | 26841:3822def2c61d |
---|---|
635 } | 635 } |
636 } | 636 } |
637 | 637 |
638 static void flip_page(void) { | 638 static void flip_page(void) { |
639 do_render(); | 639 do_render(); |
640 if (use_glFinish) | 640 if (vo_doublebuffering) { |
641 glFinish(); | 641 if (use_glFinish) glFinish(); |
642 if (vo_doublebuffering) | |
643 swapGlBuffers(); | 642 swapGlBuffers(); |
644 else if (!use_glFinish) | 643 if (vo_fs && use_aspect) |
645 glFlush(); | 644 glClear(GL_COLOR_BUFFER_BIT); |
646 | 645 } else { |
647 if (vo_fs && use_aspect && vo_doublebuffering) | 646 if (use_glFinish) glFinish(); |
648 glClear(GL_COLOR_BUFFER_BIT); | 647 else glFlush(); |
648 } | |
649 } | 649 } |
650 | 650 |
651 //static inline uint32_t draw_slice_x11(uint8_t *src[], uint32_t slice_num) | 651 //static inline uint32_t draw_slice_x11(uint8_t *src[], uint32_t slice_num) |
652 static int draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y) | 652 static int draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y) |
653 { | 653 { |