nickguletskii / GLXOSD

GLXOSD is an extensible on-screen display (OSD)/overlay for OpenGL applications running on Linux with X11 which aims to provide similar functionality to MSI Afterburner/RivaTuner OSD. It can show FPS, frame timings, temperatures and more in OpenGL games and applications. It can also be used to benchmark games, much like voglperf.
https://glxosd.nickguletskii.com
MIT License
123 stars 20 forks source link

Use the GLX drawable dimensions instead of GL_VIEWPORT #42

Closed ghost closed 8 years ago

ghost commented 8 years ago

glViewport may not be set to the actual window dimensions, e.g. for split screen games, or if the game's state tracker just likes to reset state to its default after it's done rendering.

This fixes the overlay positioning in OpenSceneGraph-based applications, e.g. OpenMW.