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/gl_common.h | |
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/gl_common.h')
-rw-r--r-- | libvo/gl_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/gl_common.h b/libvo/gl_common.h index 6df60ce257..fdeb1c35e2 100644 --- a/libvo/gl_common.h +++ b/libvo/gl_common.h @@ -210,7 +210,7 @@ const char *glValName(GLint value); int glFindFormat(uint32_t format, int *bpp, GLint *gl_texfmt, GLenum *gl_format, GLenum *gl_type); int glFmt2bpp(GLenum format, GLenum type); -void glCreateClearTex(GLenum target, GLenum fmt, GLint filter, +void glCreateClearTex(GLenum target, GLenum fmt, GLenum format, GLenum type, GLint filter, int w, int h, unsigned char val); int glCreatePPMTex(GLenum target, GLenum fmt, GLint filter, FILE *f, int *width, int *height, int *maxval); |