Skip to content

Commit

Permalink
Configured GLFW to create a hidden window
Browse files Browse the repository at this point in the history
  • Loading branch information
Arun-Prasad-V committed Jan 19, 2024
1 parent d6417d9 commit 73df46b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions realsense2_camera/include/gl_window.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class GLwindow
: _width(width), _height(height)
{
glfwInit();
glfwWindowHint(GLFW_VISIBLE, 0);
win = glfwCreateWindow(width, height, title, nullptr, nullptr);
if (!win)
throw std::runtime_error("Could not open OpenGL window, please check your graphic drivers or use the textual SDK tools");
Expand Down

0 comments on commit 73df46b

Please sign in to comment.