mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 11:47:45 +00:00
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
This commit is contained in:
parent
6fa77ca503
commit
597c92ff7f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user