-
-
Notifications
You must be signed in to change notification settings - Fork 497
Description
Describe the bug
As title suggest, currently primitives are drawn as separate queue after main drawing queue. It isn't necessarily wrong, but could be an issue for people that want to do layered stuff using the primitive drawer. It was done like that to make drawing performance better, as no render states have to be changed while processing all primitives. It can be countered by just replacing all other dxDraws with their primitive based version, but that would be a pain in the ass for most people. This issue will be most noticeable for people doing DX GUIs.
To Reproduce
dxDrawPrimitive(someArgs, ...)
dxDrawRectangle(someArg2, ...)
-- Primitive will draw over the rectangleExpected behavior
Draw primitives and non primitives in order passed by script.
MTA Client (please complete the following information):
Latest nightly i guess.
Additional context
I can make a pull request that changes it to use single queue that other drawables use, but would need someone to approve that it is the correct solution to this problem.