0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

vo_opengl: also support RA_VARTYPE_INT vertex attribs

No reason not to.
This commit is contained in:
Niklas Haas 2017-08-07 14:29:18 +02:00
parent 346ac1e09f
commit 01a40bb1ee

View File

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