Skip to content
Snippets Groups Projects
Commit 6f6d77f9 authored by Mathieu Westphal (Kitware)'s avatar Mathieu Westphal (Kitware) :zap:
Browse files

vtkOpenGLRenderer: Fix a warning about spherical harmonics

parent a61debd8
No related branches found
No related tags found
No related merge requests found
......@@ -329,7 +329,7 @@ void vtkOpenGLRenderer::DeviceRender()
// - UseSH is ON, SH is not provided, EnvTex is compatible but empty, error out
// - UseSH is OFF, use irradiance
bool useSH = this->UseSphericalHarmonics;
if (this->EnvironmentTexture && this->EnvironmentTexture->GetCubeMap())
if (useSH && this->EnvironmentTexture && this->EnvironmentTexture->GetCubeMap())
{
vtkWarningMacro(
"Cannot compute spherical harmonics of a cubemap, falling back to irradiance texture");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment