ares-emulator / ares

ares is a cross-platform, open source, multi-system emulator, focusing on accuracy and preservation.
https://ares-emu.net
Other
864 stars 105 forks source link

ruby: Use cleaner OpenGL render pattern, misc. CGL fixes #1543

Closed jcm93 closed 2 weeks ago

jcm93 commented 2 weeks ago

OpenGL rendering (all platforms)

This prior behavior would lead to scaling issues with shaders in the Metal backend. The same issues did not seem to be obviously present in OpenGL in my testing, but we should nevertheless probably fix this in case it is causing any of the subtle issues with shaders that have been reported, and also in case something breaks in the future as a result of not following this recommendation.

(The above is also unrelated to the scaling issues addressed by https://github.com/ares-emulator/ares/pull/1508)

CGL fix-ups (macOS)

This has been tested on macOS but should probably be tested on other platforms as well to make sure nothing breaks.