forked from bartvdbraak/blender
bugfix [#23075] Point clouds invisible with VBOs
This commit is contained in:
parent
fe77e6d919
commit
7ef2e33ea3
@ -241,7 +241,8 @@ static void cdDM_drawVerts(DerivedMesh *dm)
|
||||
else { /* use OpenGL VBOs or Vertex Arrays instead for better, faster rendering */
|
||||
GPU_vertex_setup(dm);
|
||||
if( !GPU_buffer_legacy(dm) ) {
|
||||
glDrawArrays(GL_POINTS,0,dm->drawObject->nelements);
|
||||
if(dm->drawObject->nelements) glDrawArrays(GL_POINTS,0, dm->drawObject->nelements);
|
||||
else glDrawArrays(GL_POINTS,0, dm->drawObject->nlooseverts);
|
||||
}
|
||||
GPU_buffer_unbind();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user