raylib icon indicating copy to clipboard operation
raylib copied to clipboard

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

Open brccabral opened this issue 7 months ago • 4 comments

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 avatar Apr 07 '25 01:04 brccabral

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

raysan5 avatar Apr 07 '25 09:04 raysan5

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 avatar Apr 07 '25 17:04 brccabral

Found one bug...

brccabral avatar Apr 07 '25 21:04 brccabral

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

brccabral avatar Apr 07 '25 22:04 brccabral

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

raysan5 avatar Jul 11 '25 09:07 raysan5