1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-18 17:40:30 +00:00

vo_opengl: style

Use uintptr_t instead of size_t. Shouldn't matter, but is cleaner.
This commit is contained in:
Niklas Haas 2017-07-16 18:32:48 +02:00
parent cea8c86f18
commit 44391af7df
No known key found for this signature in database
GPG Key ID: 9A09076581B27402

View File

@ -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);