summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-12-11 09:21:30 +0100
committerRay <[email protected]>2023-12-11 09:21:30 +0100
commit6f3c87a99969e92ada46e54258b1653994c24903 (patch)
treefcd5c0a8ef0bce253525bfbcce8830fb184d2433 /src
parent31d3ed97c75b4492cea55b458459946f7c739938 (diff)
downloadraylib-6f3c87a99969e92ada46e54258b1653994c24903.tar.gz
raylib-6f3c87a99969e92ada46e54258b1653994c24903.zip
Fix #3613
Diffstat (limited to 'src')
-rw-r--r--src/rtextures.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtextures.c b/src/rtextures.c
index 8742b0c9..c78b0ebf 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -3706,7 +3706,7 @@ void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color
// Draw text (default font) within an image (destination)
void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color)
{
-#if defined(SUPPORT_MODULE_RTEXT)
+#if defined(SUPPORT_MODULE_RTEXT) && defined(SUPPORT_DEFAULT_FONT)
// Make sure default font is loaded to be used on image text drawing
if (GetFontDefault().texture.id == 0) LoadFontDefault();