diff options
Diffstat (limited to 'video/out/opengl/utils.c')
-rw-r--r-- | video/out/opengl/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/utils.c b/video/out/opengl/utils.c index fc94f3738f..4c453b07e8 100644 --- a/video/out/opengl/utils.c +++ b/video/out/opengl/utils.c @@ -1342,7 +1342,7 @@ void gl_pbo_upload_tex(struct gl_pbo_upload *pbo, GL *gl, bool use_pbo, NULL, GL_STREAM_COPY); } - size_t offset = buffer_size * pbo->index; + uintptr_t offset = buffer_size * pbo->index; pbo->index = (pbo->index + 1) % NUM_PBO_BUFFERS; gl->BindBuffer(GL_PIXEL_UNPACK_BUFFER, pbo->buffer); |