Update Sample - extensions/ringraylib/examples/texture/imagegeneration/ImagesGeneration.ring
@@ -41,7 +41,7 @@ SetTargetFPS(10)
while !WindowShouldClose()
if IsMouseButtonPressed(MOUSE_LEFT_BUTTON) || IsKeyPressed(KEY_RIGHT)
- currentTexture = (currentTexture + 1) % NUM_TEXTURES
+ currentTexture = (currentTexture + 1) % (NUM_TEXTURES + 1)
if currentTexture = 0 currentTexture++ ok
ok
