Skip to content

Commit

Permalink
Add TODO note re issue setting texsize to val larger than 16K
Browse files Browse the repository at this point in the history
Signed-off-by: Athena Z <[email protected]>
  • Loading branch information
athenaz2 committed Aug 15, 2024
1 parent ddde4d9 commit a8a3b65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ogre2/src/Ogre2Scene.cc
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,8 @@ void Ogre2Scene::UpdateShadowNode()
GLint glMaxTexSize;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &glMaxTexSize);

// todo: there are issues when setting dirTexSize to a val larger
// than 16K
this->dataPtr->maxTexSize = std::min(this->dataPtr->maxTexSize,
static_cast<unsigned int>(glMaxTexSize));
}
Expand Down

0 comments on commit a8a3b65

Please sign in to comment.