Fix CXX_BUILD=1.

This commit is contained in:
Themaister 2012-09-11 12:40:10 +02:00
parent 6f28393c11
commit f67fe439bf

View File

@ -880,7 +880,7 @@ static void gl_init_textures(gl_t *gl)
#elif defined(HAVE_PBO) #elif defined(HAVE_PBO)
static inline void gl_copy_frame(gl_t *gl, const void *frame, unsigned width, unsigned height, unsigned pitch) 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; size_t frame_copy_size = width * gl->base_size;
pglBindBuffer(GL_PIXEL_UNPACK_BUFFER, gl->pbo); pglBindBuffer(GL_PIXEL_UNPACK_BUFFER, gl->pbo);