OpenGL error spam caused by fps counter overlay
Game log gets spammed with OpenGl errors.
[Render thread/INFO]: OpenGL debug message: id=1280, source=API, type=ERROR, severity=HIGH, message='GL_INVALID_ENUM error generated. Operation is not valid from the core profile.'
message='GL_INVALID_OPERATION error generated. Function glPushAttrib is deprecated and not available in preview contexts.'
message='GL_INVALID_OPERATION error generated. Function glMatrixMode is deprecated and not available in preview contexts.'
message='GL_INVALID_OPERATION error generated. Function glPushMatrix is deprecated and not available in preview contexts.'
message='GL_INVALID_OPERATION error generated. Function glLoadIdentity is deprecated and not available in preview contexts.'
message='GL_INVALID_OPERATION error generated. Function glOrtho is deprecated and not available in preview contexts.'
message='GL_INVALID_OPERATION error generated. Function glMatrixMode is deprecated and not available in preview contexts.'
message='GL_INVALID_OPERATION error generated. Function glPushMatrix is deprecated and not available in preview contexts.'
message='GL_INVALID_OPERATION error generated. Function glLoadIdentity is deprecated and not available in preview contexts.'
message='GL_INVALID_ENUM error generated. Cannot enable <cap> in the current profile.'
Log attached.
I discovered the issue is present when I use my recording software and when it overlays the fps on the game window:

Without the FPS overlay, the error does not appear on the logs.