summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-21 18:59:52 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-21 18:59:52 +0000
commit597c92ff7fc51392562b4985a145b2682b5758c7 (patch)
tree8f868a7e8adb3393658504124c9329d328d3406f /libvo
parent6fa77ca503a5fa4b4a47c232a9459bc4a931c110 (diff)
downloadmpv-597c92ff7fc51392562b4985a145b2682b5758c7.tar.bz2
mpv-597c92ff7fc51392562b4985a145b2682b5758c7.tar.xz
Support RGB48NE format in OpenGL vos (only really useful once they are modified
to actually use GLX/WGL visuals with more than 8 bits per component if available). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29944 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/gl_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvo/gl_common.c b/libvo/gl_common.c
index a6a7362da9..67df04f5e2 100644
--- a/libvo/gl_common.c
+++ b/libvo/gl_common.c
@@ -196,6 +196,10 @@ int glFindFormat(uint32_t fmt, int *bpp, GLint *gl_texfmt,
*bpp = IMGFMT_IS_BGR(fmt)?IMGFMT_BGR_DEPTH(fmt):IMGFMT_RGB_DEPTH(fmt);
*gl_texfmt = 3;
switch (fmt) {
+ case IMGFMT_RGB48NE:
+ *gl_format = GL_RGB;
+ *gl_type = GL_UNSIGNED_SHORT;
+ break;
case IMGFMT_RGB24:
*gl_format = GL_RGB;
*gl_type = GL_UNSIGNED_BYTE;