From: <mri...@in...> - 2008-01-11 16:15:40
|
# HG changeset patch # User Matthias Ringwald <mri...@in...> # Date 1200065704 0 # Node ID a2b61231548e6bced60db97879382338ab2a69f2 # Parent a8522d94b28d552bfa9db048dde669cb7d238609 XineOpenViewGL bug on PPC/Darwin Typo of WORDS_BIGENDIAN in in /src/video_out/macosx/XineVOpenGLView.m. It only affects big-endian systems (PowerPC) as it defaults to little-endian. diff -r a2b61231548e6bced60db97879382338ab2a69f2 -r a8522d94b28d552bfa9db048dde669cb7d238609 src/video_out/macosx/XineOpenGLView.m --- a/src/video_out/macosx/XineOpenGLView.m Fri Jan 11 15:35:04 2008 +0000 +++ b/src/video_out/macosx/XineOpenGLView.m Fri Jan 11 15:21:53 2008 +0000 @@ -340,7 +340,7 @@ NSColorToYUV(NSColor *color) // http://developer.apple.com/samplecode/Sample_Code/Graphics_3D/TextureRange/MainOpenGLView.m.htm glTexSubImage2D(GL_TEXTURE_RECTANGLE_EXT, 0, 0, 0, videoSize.width, videoSize.height, GL_YCBCR_422_APPLE, -#if WORDS_BIG_ENDIAN +#if WORDS_BIGENDIAN GL_UNSIGNED_SHORT_8_8_APPLE, #else GL_UNSIGNED_SHORT_8_8_REV_APPLE, |