changeset 33919:2d87bbea9e0f

Fix disabled code.
author reimar
date Sat, 20 Aug 2011 11:36:30 +0000
parents 294df8d5648d
children 54c6c38fcaaa
files libvo/gl_common.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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: