From 597c92ff7fc51392562b4985a145b2682b5758c7 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 21 Nov 2009 18:59:52 +0000 Subject: 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 --- libvo/gl_common.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libvo') 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; -- cgit v1.2.3