aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-02-28 23:15:34 +0100
committeremersion <contact@emersion.fr>2019-03-01 09:20:23 +0100
commit5445d8aad0112dab3ed798c39bf6b22f2a4eebd1 (patch)
treecddeb6dd5665e81d815fe51650fb8bb69b88f3dd /render
parent4135fafecd5c9a8daafb0caec96089cfa0926c6e (diff)
meson: enable more compiler warnings
Diffstat (limited to 'render')
-rw-r--r--render/gles2/renderer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c
index 50689ad4..3409d144 100644
--- a/render/gles2/renderer.c
+++ b/render/gles2/renderer.c
@@ -312,7 +312,7 @@ static bool gles2_read_pixels(struct wlr_renderer *wlr_renderer,
glGetError(); // Clear the error flag
- unsigned char *p = data + dst_y * stride;
+ unsigned char *p = (unsigned char *)data + dst_y * stride;
uint32_t pack_stride = width * fmt->bpp / 8;
if (pack_stride == stride && dst_x == 0 && flags != NULL) {
// Under these particular conditions, we can read the pixels with only