dethrace-labs / dethrace

Reverse engineering the 1997 game "Carmageddon"
https://twitter.com/dethrace_labs
GNU General Public License v3.0
669 stars 38 forks source link

Provide an argument to GLRenderer_FlushBuffer #313

Closed dethrace-labs closed 1 year ago

dethrace-labs commented 1 year ago

Part of the tHarness_platform set of function pointers is void (*Renderer_FlushBuffers)();. It does not take any arguments. We were assigning GLRenderer_FlushBuffers to that, which took a tRenderer_flush_type argument.

Because we were not providing the argument, its value was undefined and sometimes would appear to work and sometimes not.

fixes #310

dethrace-labs commented 1 year ago

@madebr could you see if this resolves #310 for you?

madebr commented 1 year ago

Indeed! This fixes both issues mentioned in #310!