[vtkusers] Using VTK 7.1 with GL 3.0 version crashing the application
Chandrasekhar B
chandrasekhar at waveaxis.com
Sun Sep 17 22:49:41 EDT 2017
I have a crash when importing stl file in the virtual machine.
I am using VTK 7.1 version. The crash is because of the GLSL version
supported by the VM.
The GL version supported by VM is 3.0.
I have fixed this issue in the following function by adding the following
code.
unsigned int vtkOpenGLShaderCache::ReplaceShaderValues(
std::string &VSSource,
std::string &FSSource,
std::string &GSSource)
{
if (glMajorVersion >= 3)
{
version = "#version 150\n";
if (glMajorVersion == 3 && glMinorVersion == 0)
{
version = "#version 130\n";
}
}
Just wanted to check, is this right fix?
How do I support GL 3.0 using VTK 7.1?
or do I need to upgrade to later version of VTK?
Currently, all the VMs we have use GL 1.3.
Regards
Shekar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170918/96482b06/attachment.html>
More information about the vtkusers
mailing list