fix warnings
This commit is contained in:
@ -32,7 +32,7 @@ struct QuadBatch collect_rect_batch(const Primitive2D primitives[], size_t len)
|
||||
.constant_colored = true,
|
||||
};
|
||||
|
||||
const uint32_t uniform_color = *(const uint32_t *)&primitives[0].rect.color;
|
||||
const uint32_t uniform_color = *(const uint32_t *)(void const *)&primitives[0].rect.color;
|
||||
|
||||
/* batch size is clamped so that reallocated short indices could be used */
|
||||
if (len >= QUAD_ELEMENT_BUFFER_LENGTH)
|
||||
@ -50,7 +50,7 @@ struct QuadBatch collect_rect_batch(const Primitive2D primitives[], size_t len)
|
||||
break;
|
||||
|
||||
/* if all are modulated the same we can skip sending the color data */
|
||||
if (*(const uint32_t *)¤t->rect.color != uniform_color)
|
||||
if (*(const uint32_t *)(void const *)¤t->rect.color != uniform_color)
|
||||
batch.constant_colored = false;
|
||||
|
||||
++batch.size;
|
||||
|
Reference in New Issue
Block a user