summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-07-16 18:32:48 +0200
committerNiklas Haas <git@haasn.xyz>2017-07-16 18:32:48 +0200
commit44391af7df57cf5e1cafda53ac998e7b55c51b92 (patch)
tree4538a3c0e66ed7ee469b48bc2403e45dbee7acdc
parentcea8c86f182193078b9c29febd20dc62837d8cb1 (diff)
downloadmpv-44391af7df57cf5e1cafda53ac998e7b55c51b92.tar.bz2
mpv-44391af7df57cf5e1cafda53ac998e7b55c51b92.tar.xz
vo_opengl: style
Use uintptr_t instead of size_t. Shouldn't matter, but is cleaner.
-rw-r--r--video/out/opengl/utils.c2
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);