comparison libvo/vo_gl2.c @ 17220:a27e52b838e3

support negative stride (flipping) in vo_gl.
author reimar
date Sun, 18 Dec 2005 12:04:08 +0000
parents f650267ecc3a
children f580a7755ac5
comparison
equal deleted inserted replaced
17219:fde45c312c31 17220:a27e52b838e3
529 mp_msg (MSGT_VO, MSGL_DBG2, "[gl2] glTexSubImage2D texnum x=%d, y=%d, %d/%d - %d/%d\n", 529 mp_msg (MSGT_VO, MSGL_DBG2, "[gl2] glTexSubImage2D texnum x=%d, y=%d, %d/%d - %d/%d\n",
530 x, y, square->dirtyXoff, square->dirtyYoff, square->dirtyWidth, square->dirtyHeight); 530 x, y, square->dirtyXoff, square->dirtyYoff, square->dirtyWidth, square->dirtyHeight);
531 531
532 glDrawTex(square->fx, square->fy, square->fw, square->fh, 532 glDrawTex(square->fx, square->fy, square->fw, square->fh,
533 0, 0, texture_width, texture_height, 533 0, 0, texture_width, texture_height,
534 texture_width, texture_height, 0, image_format == IMGFMT_YV12); 534 texture_width, texture_height,
535 0, image_format == IMGFMT_YV12, 0);
535 square++; 536 square++;
536 } /* for all texnumx */ 537 } /* for all texnumx */
537 } /* for all texnumy */ 538 } /* for all texnumy */
538 if (image_format == IMGFMT_YV12) 539 if (image_format == IMGFMT_YV12)
539 glDisableYUVConversion(GL_TEXTURE_2D, use_yuv); 540 glDisableYUVConversion(GL_TEXTURE_2D, use_yuv);