<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="text-align:left; direction:ltr;">
<div>Hi,</div>
<div><br>
</div>
<div>I recently fixed a problem I was having with a missing depth buffer which was causing strange occlusion effects but it seems it only works for my local display using an Nvidia driver, when I run the application with Mesa it goes back to looking like there's
no depth testing.</div>
<div><br>
</div>
<div>I've run the application with MESA_DEBUG and the only error I see is GL_INVALID_ENUM in glDrawElements(mode=7), which I suspect is unrelated. It also complained about the 3 argument setAttributeAndModes which I added when trying to fix the initial depth
test issue but I think is redundant so I just removed it.</div>
<div><br>
</div>
<div>state->setTextureMode(texnum, GL_DEPTH_TEST, osg::StateAttribute::OVERRIDE | osg::StateAttribute::ON);</div>
<div><br>
</div>
<div>When I built OSG for my local display I set OPENGL_PROFILE to "GL3" and I built OSG for Mesa the same way, should I be using something different for Mesa?</div>
<div><br>
</div>
<div>$ glxinfo | grep Mesa</div>
<div>client glx vendor string: Mesa Project and SGI</div>
<div>OpenGL core profile version string: 3.3 (Core Profile) Mesa 19.1.4</div>
<div>OpenGL version string: 3.1 Mesa 19.1.4</div>
<div>OpenGL ES profile version string: OpenGL ES 3.0 Mesa 19.1.4</div>
<div></div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div><br>
</div>
</body>
</html>