Skip to content

[examples][shaders_texture_tiling][WEB] explicitly state TEXTURE_WRAP_REPEAT for web build#5711

Merged
raysan5 merged 1 commit intoraysan5:masterfrom
r3g492:fix_shaders_texture_tiling
Apr 1, 2026
Merged

[examples][shaders_texture_tiling][WEB] explicitly state TEXTURE_WRAP_REPEAT for web build#5711
raysan5 merged 1 commit intoraysan5:masterfrom
r3g492:fix_shaders_texture_tiling

Conversation

@r3g492
Copy link
Copy Markdown
Contributor

@r3g492 r3g492 commented Apr 1, 2026

issue:

  • WEB example does not fallback to TEXTURE_WRAP_REPEAT default

RLGL.ExtSupported.texNPOT is 1 on desktop,
but 0 for the web.
this is environment capability, so one cannot simply change this.

the problem i believe is that
inside rlLoadTexture, if texNPOT is false, it fallbacks to CLAMP_TO_EDGE, even if the example png is a POT.

the code is not checking actual POT at the moment.

we should add that,
or explicitly call SetTextureWrap(texture, TEXTURE_WRAP_REPEAT); for web.

as a newcomer, i limited myself to example change here.
thank you,

@raysan5 raysan5 merged commit 12140cd into raysan5:master Apr 1, 2026
17 checks passed
@raysan5
Copy link
Copy Markdown
Owner

raysan5 commented Apr 1, 2026

@r3g492 thanks for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants