# HG changeset patch # User reimar # Date 1258829992 0 # Node ID 85aaba93adf13729f2e6bf411b60fc9b4beb2fbe # Parent 801650929968becd9c9bcec2aaf1f7571fd6ee49 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). diff -r 801650929968 -r 85aaba93adf1 libvo/gl_common.c --- a/libvo/gl_common.c Sat Nov 21 18:58:03 2009 +0000 +++ b/libvo/gl_common.c Sat Nov 21 18:59:52 2009 +0000 @@ -196,6 +196,10 @@ *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;