You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(This text is partially copied from the forum, as this seems like the place for this issue, now that it's been confirmed to be a bug.)
In my current project, in order to support antialiasing, I render to an off-screen buffer that, depending on the game’s settings, may be set to be multisampled. If the player changes the relevant setting while the game is running, the relevant method is called, recreating the buffer and associating the camera with it.
I believe that this had previously worked.
However, as of a few days ago, I found that enabling multisampling resulted in an OpenGL error being reported. Adding " gl-debug #t" to my “prc” file (as suggested by the initial error message) resulted in this error-text being repeated:
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. Depth formats do not match.
It seems that part of the issue is the number of depth-bits requested when constructing frame-buffer properties: if a 32 depth-bits are requested, the issue is present on my machine; when 16 depth-bits are requested, it isn't, I believe.
Below is a short test-program that displays the issue on my machine. Note the parameter to "makeBuffers", which controls the number of multi-samples requested, and the two calls to "setDepthBits", one of which is commented-out.
(This text is partially copied from the forum, as this seems like the place for this issue, now that it's been confirmed to be a bug.)
In my current project, in order to support antialiasing, I render to an off-screen buffer that, depending on the game’s settings, may be set to be multisampled. If the player changes the relevant setting while the game is running, the relevant method is called, recreating the buffer and associating the camera with it.
I believe that this had previously worked.
However, as of a few days ago, I found that enabling multisampling resulted in an OpenGL error being reported. Adding " gl-debug #t" to my “prc” file (as suggested by the initial error message) resulted in this error-text being repeated:
:display:gsg:glgsg(error): GL_INVALID_OPERATION error generated. Depth formats do not match.
It seems that part of the issue is the number of depth-bits requested when constructing frame-buffer properties: if a 32 depth-bits are requested, the issue is present on my machine; when 16 depth-bits are requested, it isn't, I believe.
Below is a short test-program that displays the issue on my machine. Note the parameter to "makeBuffers", which controls the number of multi-samples requested, and the two calls to "setDepthBits", one of which is commented-out.
The text was updated successfully, but these errors were encountered: