<html><body><div>In moving my 6.3.0 code to 7.0.0 iv'e run into the following issue:</div><div><br data-mce-bogus="1"></div><div>When I try to render my volume, the App crashes in vtkOpenGLGPUVolumeRayCastMapper.cxx line 2514...</div><div><br data-mce-bogus="1"></div><div>--------------------------------------------------------------------<br> // Now compile the shader<br> //--------------------------------------------------------------------------<br> this->Impl->ShaderProgram = this->Impl->ShaderCache->ReadyShaderProgram(<br> vertexShader.c_str(), fragmentShader.c_str(), "");<br> if (!this->Impl->ShaderProgram->GetCompiled())<br> {<br> vtkErrorMacro("Shader failed to compile");<br> }<br><br> this->Impl->ShaderBuildTime.Modified();</div><div>--------------------------------------------------------------------------</div><div>The shader fails to compile and so this->Impl->ShaderProgram is null.</div><div>However, the check following is incorrect because <span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 22.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 22.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;">this->Impl->ShaderProgram is null and so the program crashes trying to dereference the null pointer.</span></div><div><span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 22.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 22.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"><br data-mce-bogus="1"></span></div><div><span style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 22.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;" data-mce-style="color: #000000; font-family: SFNSText, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 22.5px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;">The shader compile error is below:</span></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>ERROR: \vtk700\Rendering\OpenGL2\vtkShaderProgram.cxx, line 370<br>vtkShaderProgram (00000000224A9D70): 0(169) : error C1008: undefined variable "g_aspect"<br>0(170) : error C1008: undefined variable "g_aspect"<br>0(171) : error C1008: undefined variable "g_aspect"<br><br></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Is there something I'm doing wrong here? Seems like it's really a bug in the shader program, and the error handling for failure to compile...</div><div><br data-mce-bogus="1"></div><div>Thanks</div><div><br data-mce-bogus="1"></div><div>Rick</div></body></html>