1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-17 09:04:27 +00:00

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
+1 -1
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));