[MPlayer-cvslog] r34007 - trunk/libvo/gl_common.c

reimar subversion at mplayerhq.hu
Sat Aug 20 13:36:30 CEST 2011


Author: reimar
Date: Sat Aug 20 13:36:30 2011
New Revision: 34007

Log:
Fix disabled code.

Modified:
   trunk/libvo/gl_common.c

Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	Sat Aug 20 13:29:23 2011	(r34006)
+++ trunk/libvo/gl_common.c	Sat Aug 20 13:36:30 2011	(r34007)
@@ -308,8 +308,8 @@ int glFindFormat(uint32_t fmt, int *bpp,
     // we do not support palettized formats, although the format the
     // swscale produces works
     case IMGFMT_RGB8:
-      gl_format = GL_RGB;
-      gl_type = GL_UNSIGNED_BYTE_2_3_3_REV;
+      *gl_format = GL_RGB;
+      *gl_type = GL_UNSIGNED_BYTE_2_3_3_REV;
       break;
 #endif
     case IMGFMT_RGB15:
@@ -326,8 +326,8 @@ int glFindFormat(uint32_t fmt, int *bpp,
       // GL_BGR and GL_UNSIGNED_BYTE_3_3_2 isn't supported at least
       // by nVidia drivers, and in addition would give more bits to
       // blue than to red, which isn't wanted
-      gl_format = GL_RGB;
-      gl_type = GL_UNSIGNED_BYTE_3_3_2;
+      *gl_format = GL_RGB;
+      *gl_type = GL_UNSIGNED_BYTE_3_3_2;
       break;
 #endif
     case IMGFMT_BGR15:


More information about the MPlayer-cvslog mailing list