Skip to content

[rlgl] Preserve current mode and textureId when switching mode or texture #4878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

brccabral
Copy link
Contributor

Related to #4874 , #4347 , #4364
I tested both textures_polygon and textures_bunnymark, they both work. I tested some others too, didn't see any problem, but feel free to comment.

@raysan5
Copy link
Owner

raysan5 commented Apr 7, 2025

@brccabral Did you review with RenderDoc that the batching system is not broken? Last time this change was intended, the batching system was broken.

@brccabral
Copy link
Contributor Author

Hi @raysan5
First time I am using RenderDoc , I saved the captures files, but I don't know what to look for.
RenderDoc_raylib_bunnymark.zip

@brccabral
Copy link
Contributor Author

Found one bug...

@brccabral
Copy link
Contributor Author

Had to set default texture on all shapes and models.
Tested the bunnymark with RenderDoc again.
RenderDoc_raylib_bunnymark2.zip

@raysan5
Copy link
Owner

raysan5 commented Jul 11, 2025

I decided not to merge this change, a mandatory rlSetTexture(rlGetTextureIdDefault()); does not look good to me.

@raysan5 raysan5 closed this Jul 11, 2025
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