diff options
Diffstat (limited to 'modules/opengles')
-rw-r--r-- | modules/opengles/opengles.c | 5 | ||||
-rw-r--r-- | modules/opengles/opengles.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/modules/opengles/opengles.c b/modules/opengles/opengles.c index 4561577..e435b1d 100644 --- a/modules/opengles/opengles.c +++ b/modules/opengles/opengles.c @@ -204,11 +204,10 @@ static void destructor(void *arg) context_destroy(st); mem_deref(st->vf); - mem_deref(st->vd); } -static int opengles_alloc(struct vidisp_st **stp, struct vidisp *vd, +static int opengles_alloc(struct vidisp_st **stp, const struct vidisp *vd, struct vidisp_prm *prm, const char *dev, vidisp_resize_h *resizeh, void *arg) @@ -225,7 +224,7 @@ static int opengles_alloc(struct vidisp_st **stp, struct vidisp *vd, if (!st) return ENOMEM; - st->vd = mem_ref(vd); + st->vd = vd; err = context_init(st); if (err) diff --git a/modules/opengles/opengles.h b/modules/opengles/opengles.h index 9eac3fb..6c61a1e 100644 --- a/modules/opengles/opengles.h +++ b/modules/opengles/opengles.h @@ -6,7 +6,7 @@ struct vidisp_st { - struct vidisp *vd; + const struct vidisp *vd; /* pointer to base-class (inheritance) */ struct vidframe *vf; /* GLES: */ |