diff options
author | Niklas Haas <git@haasn.xyz> | 2017-08-07 14:29:18 +0200 |
---|---|---|
committer | Niklas Haas <git@haasn.xyz> | 2017-08-07 17:46:04 +0200 |
commit | 01a40bb1eea8a25b69b84401024db80b3e1ed187 (patch) | |
tree | 78a35d0e9054a8c2f77f556055d9c4cd1fca089b /video/out | |
parent | 346ac1e09f89bfbaac6329c89435e3c1faff6e8e (diff) | |
download | mpv-01a40bb1eea8a25b69b84401024db80b3e1ed187.tar.bz2 mpv-01a40bb1eea8a25b69b84401024db80b3e1ed187.tar.xz |
vo_opengl: also support RA_VARTYPE_INT vertex attribs
No reason not to.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/opengl/gl_utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/opengl/gl_utils.c b/video/out/opengl/gl_utils.c index aa00e5c165..9f81166404 100644 --- a/video/out/opengl/gl_utils.c +++ b/video/out/opengl/gl_utils.c @@ -139,6 +139,9 @@ static void gl_vao_enable_attribs(struct gl_vao *vao) GLenum type = 0; bool normalized = false; switch (e->type) { + case RA_VARTYPE_INT: + type = GL_INT; + break; case RA_VARTYPE_FLOAT: type = GL_FLOAT; break; |