raylib
raylib copied to clipboard
[rlgl] Preserve current mode and textureId when switching mode or texture
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.
@brccabral Did you review with RenderDoc that the batching system is not broken? Last time this change was intended, the batching system was broken.
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
Found one bug...
Had to set default texture on all shapes and models.
Tested the bunnymark with RenderDoc again.
RenderDoc_raylib_bunnymark2.zip
I decided not to merge this change, a mandatory rlSetTexture(rlGetTextureIdDefault()); does not look good to me.