summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/video_out/macosx/XineOpenGLView.m20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/video_out/macosx/XineOpenGLView.m b/src/video_out/macosx/XineOpenGLView.m
index 1d1f8a1e9..e939575a0 100644
--- a/src/video_out/macosx/XineOpenGLView.m
+++ b/src/video_out/macosx/XineOpenGLView.m
@@ -409,6 +409,16 @@ static uint32_t NSColorToYUV (NSColor *color);
texture_buffer = malloc (sizeof (char) *
video_width * video_height * 3);
+ {
+ // There _has_ to be a better way of doing this ...
+
+ uint32_t *p, *q;
+ p = (uint32_t *) texture_buffer;
+ q = (uint32_t *) (char *) (texture_buffer + (sizeof(char) * video_width * video_height * 3));
+
+ for (; p < q; p++) *p = initialColorYUV;
+ }
+
}
if (!initialColorYUVIsSet && initialColor)
@@ -417,16 +427,6 @@ static uint32_t NSColorToYUV (NSColor *color);
initialColorYUVIsSet = YES;
}
- {
- // There _has_ to be a better way of doing this ...
-
- uint32_t *p, *q;
- p = (uint32_t *) texture_buffer;
- q = (uint32_t *) (char *) (texture_buffer + (sizeof(char) * video_width * video_height * 3));
-
- for (; p < q; p++) *p = initialColorYUV;
- }
-
/* Create textures */
glGenTextures (1, &i_texture);