From f67fe439bfac47d6e57b26911f51695d2fe176d9 Mon Sep 17 00:00:00 2001 From: Themaister Date: Tue, 11 Sep 2012 12:40:10 +0200 Subject: [PATCH] Fix CXX_BUILD=1. --- gfx/gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/gl.c b/gfx/gl.c index bb92a0516a..a0e5a91d33 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -880,7 +880,7 @@ static void gl_init_textures(gl_t *gl) #elif defined(HAVE_PBO) static inline void gl_copy_frame(gl_t *gl, const void *frame, unsigned width, unsigned height, unsigned pitch) { - const uint8_t *frame_copy = frame; + const uint8_t *frame_copy = (const uint8_t*)frame; size_t frame_copy_size = width * gl->base_size; pglBindBuffer(GL_PIXEL_UNPACK_BUFFER, gl->pbo);