Textures/draw_tiled : Changed to the correct texture filter

This commit is contained in:
Per Hultqvist 2024-10-19 09:55:40 +02:00
parent 42a2d9159c
commit eb60c30db1

View file

@ -34,7 +34,7 @@ func main() {
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required) // NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
texPattern := rl.LoadTexture("patterns.png") texPattern := rl.LoadTexture("patterns.png")
rl.SetTextureFilter(texPattern, rl.TextureFilterNearestMipLinear) // Makes the texture smoother when upscaled rl.SetTextureFilter(texPattern, rl.FilterTrilinear) // Makes the texture smoother when upscaled
// Coordinates for all patterns inside the texture // Coordinates for all patterns inside the texture
recPattern := []rl.Rectangle{ recPattern := []rl.Rectangle{