<div dir="ltr">Hello all,<div><br></div><div style>I was trying to compile and run this example:<br></div><div style><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Shadows">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/Shadows</a><br>
</div><div style>on Mac OSX 10.8, linking against vtk 5.10.1.  I got a segfault when I tried to run it.  Here is the gdb stack trace:</div><div style><div>(gdb) where</div><div>#0  0x00007fff8ace78b5 in glGetString ()</div>
<div>#1  0x00000001005d60db in vtkFrameBufferObject::IsSupported (win=0x1031218f0) at /Users/swaldon/src/VTK/Rendering/vtkFrameBufferObject.cxx:60</div><div>#2  0x0000000100005776 in main ()</div><div><br></div><div style>
If I comment out the line:</div><div style><pre class="" style="padding:0px;border:0px none white;color:rgb(0,0,0);line-height:1.2em;font-size:10px;margin-top:0px;margin-bottom:0px;background-image:none;vertical-align:top">
<span class="" style="color:rgb(0,0,255)">bool</span> supported <span class="" style="color:rgb(0,0,128)">=</span> vtkFrameBufferObject<span class="" style="color:rgb(0,128,128)">::</span><span class="" style="color:rgb(0,119,136)">IsSupported</span><span class="" style="color:rgb(0,128,0)">(</span>renderWindow<span class="" style="color:rgb(0,128,0)">)</span><span class="" style="color:rgb(0,128,128)">;</span> <span class="" style="color:rgb(102,102,102)">// adapted from line 182 of vtkShadowMapPass.cxx</span></pre>
</div><div style>and replace it with:</div><div style>bool supported = true;</div><div style>it works fine, but this call looks important and I thought I should at least report the issue somewhere.</div><div style><br></div>
<div style>Shawn</div></div></div>