Commit bffa84d7 authored by Andrew Bauer's avatar Andrew Bauer Committed by Kitware Robot

Merge topic 'egl_point_sprite_bug'

8660e581 Fix for point sprites for NVIDIA EGL 358 libs.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Dan Lipsa's avatarDan Lipsa <dan.lipsa@kitware.com>
Merge-request: !1295
parents ad324d8b 8660e581
Pipeline #8710 running 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