MonoGame/MonoGame

PInvokeStackImbalance in GL.ClearDepth

Open

#5.455 aberto em 3 de fev. de 2017

Ver no GitHub
 (6 comments) (0 reactions) (0 assignees)C# (3.071 forks)batch import
Help WantedOpenGLbughelp wantedscope: nativescope: opengl

Métricas do repositório

Stars
 (13.886 stars)
Métricas de merge de PR
 (Mesclagem média 25d 3h) (22 fundiu PRs em 30d)

Description

So we had two developers using the DesktopGL build of MG run into the PInvokeStackImbalance debug assist warning when testing their game in the debugger.

For one it happened on the first call to render a scene. The other developer was able to render 1000s of frames in the game's UI before getting into gameplay where suddenly PInvokeStackImbalance errors started occurring.

For both the error only occurred on GL.ClearDepth and for both disabling the PInvokeStackImbalance debug assistant feature allows the game to run seemingly like normal.

Still I see information out there that this is a real bug that needs fixing:

http://codenition.blogspot.com/2010/05/pinvokestackimbalance-in-net-40i-beg.html

But it seems curious that it didn't occur on the first calls to GL.ClearDepth for one of the developers.

Guia do colaborador