Concerning artifacts in SWKOTOR

In hudhook 0.8.0, I get artifacts in SWKOTOR. That brown mess is spazzing out completely and funny enough that brown mess is actually supposed to be a character standing to the left of the menu.
Imgui doesn't render either for that matter. Absolutely no clue what causes it, all I know is that it isn't present in hudhook 0.5.0.
What engine does SWKOTOR use? Sounds like broken vertex buffers, synchronization problems, or something like that.
What engine does SWKOTOR use? Sounds like broken vertex buffers, synchronization problems, or something like that.
Woops! Didn't realize I left this issue very vague haha. It uses OpenGL.
A plausible cause is that there is some aspect of the OpenGL state that is not saved and restored properly and leads to VBOs getting jumbled. I'm honestly not sure how to debug this myself.