Disable ShadowMap Texture Slot To Prevent Global State Leak (#6147)

This commit is contained in:
Caden Parker
2026-09-13 15:55:43 -05:00
committed by GitHub
parent 8564d55149
commit c172619cda

View File

@@ -180,6 +180,9 @@ int main(void)
DrawScene(cube, robot); // Draw the same exact things as we drew in the shadowmap!
EndMode3D();
rlActiveTextureSlot(textureActiveSlot);
rlDisableTexture();
DrawText("Use the arrow keys to rotate the light!", 10, 10, 30, RED);
DrawText("Shadows in raylib using the shadowmapping algorithm!", screenWidth - 280, screenHeight - 20, 10, GRAY);