From 85de580527e96f327d474cd865afba5b68ed4f72 Mon Sep 17 00:00:00 2001 From: Max Coplan Date: Thu, 12 Feb 2026 07:15:47 -0800 Subject: [PATCH] fix(examples): don't bleed fog when on edge (#5547) Steps to reproduce: 1. play textures_fog_of_war example 2. Move player to edge of screen 3. Note the light bleeds to the other side of the screen --- examples/textures/textures_fog_of_war.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/textures/textures_fog_of_war.c b/examples/textures/textures_fog_of_war.c index ea98b03ce..1354d7124 100644 --- a/examples/textures/textures_fog_of_war.c +++ b/examples/textures/textures_fog_of_war.c @@ -68,6 +68,7 @@ int main(void) // at a smaller size (one pixel per tile) and scale it on drawing with bilinear filtering RenderTexture2D fogOfWar = LoadRenderTexture(map.tilesX, map.tilesY); SetTextureFilter(fogOfWar.texture, TEXTURE_FILTER_BILINEAR); + SetTextureWrap(fogOfWar.texture, TEXTURE_WRAP_CLAMP); SetTargetFPS(60); // Set our game to run at 60 frames-per-second //--------------------------------------------------------------------------------------