Mercurial > mplayer.hg
diff libvo/vo_gl2.c @ 27621:53b5cf466361
Change glCreateClearTex to use the same host data format as later uploads.
This fixes at least some of the massive performance problems the ATI drivers have.
author | reimar |
---|---|
date | Sat, 20 Sep 2008 17:48:01 +0000 |
parents | 5fe6a8adf569 |
children | 66d7ea3f5a78 |
line wrap: on
line diff
--- a/libvo/vo_gl2.c Sat Sep 20 17:23:02 2008 +0000 +++ b/libvo/vo_gl2.c Sat Sep 20 17:48:01 2008 +0000 @@ -256,16 +256,16 @@ ActiveTexture(GL_TEXTURE0); } - glCreateClearTex(GL_TEXTURE_2D, gl_internal_format, GL_LINEAR, + glCreateClearTex(GL_TEXTURE_2D, gl_internal_format, gl_bitmap_format, gl_bitmap_type, GL_LINEAR, texture_width, texture_height, 0); glTexEnvf (GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); if (image_format == IMGFMT_YV12) { ActiveTexture(GL_TEXTURE1); - glCreateClearTex(GL_TEXTURE_2D, gl_internal_format, GL_LINEAR, + glCreateClearTex(GL_TEXTURE_2D, gl_internal_format, gl_bitmap_format, gl_bitmap_type, GL_LINEAR, texture_width / 2, texture_height / 2, 128); ActiveTexture(GL_TEXTURE2); - glCreateClearTex(GL_TEXTURE_2D, gl_internal_format, GL_LINEAR, + glCreateClearTex(GL_TEXTURE_2D, gl_internal_format, gl_bitmap_format, gl_bitmap_type, GL_LINEAR, texture_width / 2, texture_height / 2, 128); ActiveTexture(GL_TEXTURE0); }