mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fix of #2739
This commit is contained in:
parent
4717cdf2e1
commit
0becfa0a04
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue