From 005ba8fca74331e37f197ba0b556fd633ab666f7 Mon Sep 17 00:00:00 2001 From: Ruben Alves Date: Thu, 8 Jun 2023 15:24:44 -0300 Subject: [PATCH] Disabling anti-aliasing to get rid of Black Screen on Docker or MVs when using OpenGL 4.5. See gazebosim/gz-sim#1116 --- src/plugins/minimal_scene/MinimalScene.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/minimal_scene/MinimalScene.cc b/src/plugins/minimal_scene/MinimalScene.cc index bbd59d550..2de5d8b4e 100644 --- a/src/plugins/minimal_scene/MinimalScene.cc +++ b/src/plugins/minimal_scene/MinimalScene.cc @@ -630,7 +630,7 @@ std::string GzRenderer::Initialize() this->dataPtr->camera->SetFarClipPlane(this->cameraFarClip); this->dataPtr->camera->SetImageWidth(this->textureSize.width()); this->dataPtr->camera->SetImageHeight(this->textureSize.height()); - this->dataPtr->camera->SetAntiAliasing(8); + this->dataPtr->camera->SetAntiAliasing(0); this->dataPtr->camera->SetHFOV(this->cameraHFOV); // setting the size and calling PreRender should cause the render texture to // be rebuilt