From 5e1e80735800b13e3be179d6a2c33b569d583113 Mon Sep 17 00:00:00 2001
From: Michael Savage <mike@mikejsavage.co.uk>
Date: Mon, 17 Mar 2025 11:58:40 +0000
Subject: [PATCH] [Core] Make Clay_ImageElementConfig::imageData a pointer to
 const

---
 clay.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clay.h b/clay.h
index 346c2cb..e0f96fa 100644
--- a/clay.h
+++ b/clay.h
@@ -392,7 +392,7 @@ CLAY__WRAPPER_STRUCT(Clay_TextElementConfig);
 
 // Controls various settings related to image elements.
 typedef struct {
-    void* imageData; // A transparent pointer used to pass image data through to the renderer.
+    const void* imageData; // A transparent pointer used to pass image data through to the renderer.
     Clay_Dimensions sourceDimensions; // The original dimensions of the source image, used to control aspect ratio.
 } Clay_ImageElementConfig;
 
@@ -556,7 +556,7 @@ typedef struct {
     // The original dimensions of the source image, used to control aspect ratio.
     Clay_Dimensions sourceDimensions;
     // A pointer transparently passed through from the original element definition, typically used to represent image data.
-    void* imageData;
+    const void* imageData;
 } Clay_ImageRenderData;
 
 // Render command data when commandType == CLAY_RENDER_COMMAND_TYPE_CUSTOM