# HG changeset patch # User reimar # Date 1313840190 0 # Node ID 2d87bbea9e0f24a9192e3281d9d323ed1fb1d9ce # Parent 294df8d5648d0ac8cb04a12823c6c7b563351676 Fix disabled code. diff -r 294df8d5648d -r 2d87bbea9e0f libvo/gl_common.c --- a/libvo/gl_common.c Sat Aug 20 11:29:23 2011 +0000 +++ b/libvo/gl_common.c Sat Aug 20 11:36:30 2011 +0000 @@ -308,8 +308,8 @@ // 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 @@ // 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: