diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-09-20 17:48:01 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-09-20 17:48:01 +0000 |
commit | 0e99017da985eff9bf9b996ae1268794e6dfa770 (patch) | |
tree | 71259826b0349aae4ee31b6fd5670bee28f45c7a /libvo/vo_gl2.c | |
parent | 2d4476731cfcc01df399835bd0c96864550ac009 (diff) | |
download | mpv-0e99017da985eff9bf9b996ae1268794e6dfa770.tar.bz2 mpv-0e99017da985eff9bf9b996ae1268794e6dfa770.tar.xz |
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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27653 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl2.c')
-rw-r--r-- | libvo/vo_gl2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c index 5a81213b6f..1efe6308df 100644 --- a/libvo/vo_gl2.c +++ b/libvo/vo_gl2.c @@ -256,16 +256,16 @@ static int initTextures(void) 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); } |