mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-20 01:28:07 +08:00
Fix of #2739
This commit is contained in:
parent
4717cdf2e1
commit
0becfa0a04
@ -609,10 +609,12 @@ void Bed3D::render_default(bool bottom) const
|
|||||||
if (!has_model && !bottom)
|
if (!has_model && !bottom)
|
||||||
{
|
{
|
||||||
// draw background
|
// draw background
|
||||||
|
glsafe(::glDepthMask(GL_FALSE));
|
||||||
glsafe(::glColor4f(0.35f, 0.35f, 0.35f, 0.4f));
|
glsafe(::glColor4f(0.35f, 0.35f, 0.35f, 0.4f));
|
||||||
glsafe(::glNormal3d(0.0f, 0.0f, 1.0f));
|
glsafe(::glNormal3d(0.0f, 0.0f, 1.0f));
|
||||||
glsafe(::glVertexPointer(3, GL_FLOAT, m_triangles.get_vertex_data_size(), (GLvoid*)m_triangles.get_vertices_data()));
|
glsafe(::glVertexPointer(3, GL_FLOAT, m_triangles.get_vertex_data_size(), (GLvoid*)m_triangles.get_vertices_data()));
|
||||||
glsafe(::glDrawArrays(GL_TRIANGLES, 0, (GLsizei)triangles_vcount));
|
glsafe(::glDrawArrays(GL_TRIANGLES, 0, (GLsizei)triangles_vcount));
|
||||||
|
glsafe(::glDepthMask(GL_TRUE));
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw grid
|
// draw grid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user