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:
parent
346ac1e09f
commit
01a40bb1ee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user