render: Fixup
parent
2d953c5053
commit
33772e0b94
|
@ -16,6 +16,8 @@ struct renderer {
|
|||
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);
|
||||
|
||||
/* Copy a horizontal stripe from the GL frame into a pixel buffer */
|
||||
|
|
|
@ -262,7 +262,7 @@ int renderer_init(struct renderer* self, uint32_t width, uint32_t height)
|
|||
EGLConfig cfg;
|
||||
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;
|
||||
|
||||
static const EGLint ctx_attr[] = {
|
||||
|
|
Loading…
Reference in New Issue