Skip to content

Commit

Permalink
Disabling anti-aliasing to get rid of Black Screen on Docker or MVs w…
Browse files Browse the repository at this point in the history
…hen using OpenGL 4.5. See gazebosim/gz-sim#1116 (comment)
  • Loading branch information
Ubuntu committed May 31, 2022
1 parent 1e415bb commit 3e0814c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ogre/include/ignition/rendering/ogre/OgreRenderTarget.hh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ namespace ignition

protected: bool colorDirty = true;

protected: unsigned int antiAliasing = 4;
protected: unsigned int antiAliasing = 0;

/// \brief visibility mask associated with this render target
protected: uint32_t visibilityMask = IGN_VISIBILITY_ALL;
Expand Down
2 changes: 1 addition & 1 deletion ogre/src/OgreRenderEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ void OgreRenderEngine::CreateRenderSystem()

// check if target fsaa is supported
unsigned int fsaa = 0;
unsigned int targetFSAA = 4;
unsigned int targetFSAA = 0;
auto const it = std::find(this->dataPtr->fsaaLevels.begin(),
this->dataPtr->fsaaLevels.end(), targetFSAA);
if (it != this->dataPtr->fsaaLevels.end())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ namespace ignition
protected: bool backgroundMaterialDirty = false;

/// \brief Anti-aliasing level
protected: unsigned int antiAliasing = 4;
protected: unsigned int antiAliasing = 0;

/// \brief visibility mask associated with this render target
protected: uint32_t visibilityMask = IGN_VISIBILITY_ALL;
Expand Down
2 changes: 1 addition & 1 deletion ogre2/src/Ogre2RenderEngine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ void Ogre2RenderEngine::CreateRenderSystem()

// check if target fsaa is supported
unsigned int fsaa = 0;
unsigned int targetFSAA = 4;
unsigned int targetFSAA = 0;
auto const it = std::find(this->dataPtr->fsaaLevels.begin(),
this->dataPtr->fsaaLevels.end(), targetFSAA);
if (it != this->dataPtr->fsaaLevels.end())
Expand Down
2 changes: 1 addition & 1 deletion ogre2/src/Ogre2RenderTarget.cc
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ uint8_t Ogre2RenderTarget::TargetFSAA() const
}

if (targetFSAA == 0u)
targetFSAA = 1u;
targetFSAA = 0u;

return static_cast<uint8_t>(targetFSAA);
}
Expand Down

0 comments on commit 3e0814c

Please sign in to comment.