mojira.dev
MC-228532

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:

[media]

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

Attachments

Comments 10

Could you check whether you're affected by MC-219985?

No, I activated the FPS overlay and checked the azalea flowers and no z-fighting

[media]

Hmm.

Well, since these messages are caused by the overlay, I don't think this can be fixed by Mojang.

That does not happen on 1.16.5, it started in 1.17

 this is super annoying, I don't think it affects all 1.17 snapshots since 21w10a (lwjgl change) but I think it affects 1.17pre4 to 1.17rc2 as well

Same issue, I also use Bandicam to record my gameplay, the error messages are specially evident when you have optifine installed, I also discovered this bug by accident.

I don't use optifine and I get the error, so it does not have to do with optifine

This also seems to occur with Overwolf / CurseForge app.

Me and a friend of mine got pretty much the same issue, except that we don't have an FPS counter.

Occurring on both curse and regular launchers.

I've been looking for one like that.

Please check if this is still an issue in 1.19.2 or later.

Winter_Grave

(Unassigned)

Unconfirmed

(Unassigned)

1.17, 1.17.1 Pre-release 1, 1.17.1

Retrieved