Browse Source

Obey background color's alpha value

Former-commit-id: 0b3c560fa49fe20f55a44fae621b40d2fc48d736
Alec Jacobson 7 years ago
parent
commit
5dad6625c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/opengl/ViewerCore.cpp

+ 1 - 1
include/igl/opengl/ViewerCore.cpp

@@ -90,7 +90,7 @@ IGL_INLINE void igl::opengl::ViewerCore::clear_framebuffers()
   glClearColor(background_color[0],
                background_color[1],
                background_color[2],
-               1.0f);
+               background_color[3]);
   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
 }