Commit 8660e581 authored by Andrew Bauer's avatar Andrew Bauer

Fix for point sprites for NVIDIA EGL 358 libs.

For now we just assume that there's a bug in the EGL libs
for point sprites. When we find a version that doesn't have
the bug we can specifically set which libs to use the
work-around with.
parent 1521bd0a
Pipeline #8701 passed with stage
......@@ -607,12 +607,20 @@ int vtkEGLRenderWindow::GetOffScreenRendering ()
//----------------------------------------------------------------------------
bool vtkEGLRenderWindow::IsPointSpriteBugPresent()
{
if (! this->IsPointSpriteBugTested)
{
this->IsPointSpriteBugTested = true;
this->IsPointSpriteBugPresent_ =
(strcmp(reinterpret_cast<const char*>(glGetString(GL_VERSION)), "4.5.0 NVIDIA 355.11") == 0);
}
// eventually we'll want to check with the NVIDIA EGL version to see if the
// point sprite bug is fixed but we don't know yet when it will be fixed
// but we do know that it's present in both the 355 and 358 drivers. for
// now do the safe thing and just assume the bug isn't fixed until we
// find a driver version where it is fixed.
this->IsPointSpriteBugTested = true;
this->IsPointSpriteBugPresent_ = true;
// if (! this->IsPointSpriteBugTested)
// {
// this->IsPointSpriteBugTested = true;
// this->IsPointSpriteBugPresent_ =
// (strcmp(reinterpret_cast<const char*>(glGetString(GL_VERSION)), "4.5.0 NVIDIA 355.11") == 0) ||
// (strcmp(reinterpret_cast<const char*>(glGetString(GL_VERSION)), "4.5.0 NVIDIA 358.16") == 0);
// }
return this->IsPointSpriteBugPresent_;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment