render: Fixup

shader-damage
Andri Yngvason 2019-10-06 20:54:59 +00:00
parent 2d953c5053
commit 33772e0b94
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@ struct renderer {
GLint read_type; GLint read_type;
}; };
int renderer_init(struct renderer* self, uint32_t width, uint32_t height);
int render_dmabuf_frame(struct renderer* self, struct dmabuf_frame* frame); int render_dmabuf_frame(struct renderer* self, struct dmabuf_frame* frame);
/* Copy a horizontal stripe from the GL frame into a pixel buffer */ /* Copy a horizontal stripe from the GL frame into a pixel buffer */

View File

@ -262,7 +262,7 @@ int renderer_init(struct renderer* self, uint32_t width, uint32_t height)
EGLConfig cfg; EGLConfig cfg;
EGLint cfg_count; EGLint cfg_count;
if (!eglChooseConfig(self->display, cfg_attr, cfg, 1, &cfg_count)) if (!eglChooseConfig(self->display, cfg_attr, &cfg, 1, &cfg_count))
return -1; return -1;
static const EGLint ctx_attr[] = { static const EGLint ctx_attr[] = {