From 69f9a422876b6accf5a9472b5566fc13608ad9ff Mon Sep 17 00:00:00 2001 From: Zane van Iperen Date: Wed, 9 Oct 2024 20:03:01 +0900 Subject: [PATCH] drivers/glrend/sbuffer: add missing cast to shutup warning --- drivers/glrend/sbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/glrend/sbuffer.c b/drivers/glrend/sbuffer.c index 6f25f0c0..caedf511 100644 --- a/drivers/glrend/sbuffer.c +++ b/drivers/glrend/sbuffer.c @@ -135,7 +135,7 @@ static br_error BR_CMETHOD_DECL(br_buffer_stored_gl, update)(struct br_buffer_st if(pm_device == NULL) { return updateMemory(self, (br_pixelmap *)pm); } else if(pm_device == self->device) { - ASSERT(self->source == NULL || self->source == pm); + ASSERT(self->source == NULL || self->source == (br_pixelmap *)pm); self->gl_tex = 0; /* Unused for us. */ self->source = (br_pixelmap *)pm; self->source_flags = pm->pm_flags;