From 1ca068e91df9f79cb5de6bc475ce96e59aab5bfd Mon Sep 17 00:00:00 2001 From: kirtijindal14 Date: Mon, 27 Jul 2026 17:52:14 +0530 Subject: [PATCH] ptcloud: fix viz3d build without OpenGL Close the cv::viz3d namespaces outside the trailing #ifdef HAVE_OPENGL block. Previously the closing braces were inside the guard, so a build with OpenGL disabled dropped them and failed with 'expected }' at end of input'. --- modules/ptcloud/src/viz3d/viz3d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ptcloud/src/viz3d/viz3d.cpp b/modules/ptcloud/src/viz3d/viz3d.cpp index d0bb9bdbf4..1b4c7d6374 100644 --- a/modules/ptcloud/src/viz3d/viz3d.cpp +++ b/modules/ptcloud/src/viz3d/viz3d.cpp @@ -1534,7 +1534,7 @@ void PointCloud::setShader(ogl::Program program_) this->proj_loc = this->program.getUniformLocation("proj"); } +#endif // HAVE_OPENGL + } // namespace viz3d } // namespace cv - -#endif