Transparent background for thumbnails saved into gcode and sl1 files

This commit is contained in:
Enrico Turri 2019-11-27 13:37:37 +01:00
parent 5fcf41a3aa
commit 1ba3f0a4f6
3 changed files with 6 additions and 6 deletions

View file

@ -3847,7 +3847,7 @@ static void render_volumes_in_thumbnail(Shader& shader, const GLVolumePtrs& volu
camera.apply_projection(box);
if (transparent_background)
glsafe(::glClearColor(1.0f, 1.0f, 1.0f, 0.0f));
glsafe(::glClearColor(0.0f, 0.0f, 0.0f, 0.0f));
glsafe(::glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT));
glsafe(::glEnable(GL_DEPTH_TEST));