<div dir="ltr"><div>I have a crash when importing stl file in the virtual machine.</div>I am using VTK 7.1 version. The crash is because of the GLSL version supported by the VM.<div>The GL version supported by VM is 3.0.</div><div><br></div><div>I have fixed this issue in the following function by adding the following code.</div><div><br></div><div><div>unsigned int vtkOpenGLShaderCache::ReplaceShaderValues(</div><div>  std::string &VSSource,</div><div>  std::string &FSSource,</div><div>  std::string &GSSource)</div></div><div>{</div><div><br></div><div><div>if (glMajorVersion >= 3)</div><div>    {</div><div>    version = "#version 150\n";</div><div><span style="white-space:pre">      </span>if (glMajorVersion == 3 && glMinorVersion == 0)</div><div><span style="white-space:pre">       </span>{</div><div><span style="white-space:pre">             </span>version = "#version 130\n";</div><div><span style="white-space:pre"> </span>}</div></div><div>}</div><div><br></div><div>Just wanted to check, is this right fix?</div><div>How do I support GL 3.0 using VTK 7.1?</div><div>or do I need to upgrade to later version of VTK?</div><div>Currently, all the VMs we have use GL 1.3.</div><div><br></div><div>Regards</div><div>Shekar</div></div>