- removed "per point fixed color provides same color of the per mesh color" bug
This commit is contained in:
parent
49f49efaf3
commit
febc30581a
|
@ -880,8 +880,6 @@ namespace vcg
|
||||||
|
|
||||||
if (attributestobeupdated[INT_ATT_NAMES::ATT_VERTINDICES])
|
if (attributestobeupdated[INT_ATT_NAMES::ATT_VERTINDICES])
|
||||||
{
|
{
|
||||||
|
|
||||||
//size_t tsz = _bo[INT_ATT_NAMES::ATT_VERTINDICES]->_components * _bo[INT_ATT_NAMES::ATT_VERTINDICES]->getSizeOfGLType() * chunksize;
|
|
||||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _bo[INT_ATT_NAMES::ATT_VERTINDICES]->_bohandle);
|
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, _bo[INT_ATT_NAMES::ATT_VERTINDICES]->_bohandle);
|
||||||
glBufferSubData(GL_ELEMENT_ARRAY_BUFFER,chunkingpu * facechunk * _bo[INT_ATT_NAMES::ATT_VERTINDICES]->_components * _bo[INT_ATT_NAMES::ATT_VERTINDICES]->getSizeOfGLType(),_bo[INT_ATT_NAMES::ATT_VERTINDICES]->_components * _bo[INT_ATT_NAMES::ATT_VERTINDICES]->getSizeOfGLType() * chunksize,&ti[0]);
|
glBufferSubData(GL_ELEMENT_ARRAY_BUFFER,chunkingpu * facechunk * _bo[INT_ATT_NAMES::ATT_VERTINDICES]->_components * _bo[INT_ATT_NAMES::ATT_VERTINDICES]->getSizeOfGLType(),_bo[INT_ATT_NAMES::ATT_VERTINDICES]->_components * _bo[INT_ATT_NAMES::ATT_VERTINDICES]->getSizeOfGLType() * chunksize,&ti[0]);
|
||||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
|
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
|
||||||
|
@ -1568,7 +1566,10 @@ namespace vcg
|
||||||
|
|
||||||
glEnable(GL_COLOR_MATERIAL);
|
glEnable(GL_COLOR_MATERIAL);
|
||||||
if ((isgloptsvalid) && ((glopts->_perpoint_fixed_color_enabled) || (glopts->_perpoint_mesh_color_enabled)))
|
if ((isgloptsvalid) && ((glopts->_perpoint_fixed_color_enabled) || (glopts->_perpoint_mesh_color_enabled)))
|
||||||
|
if (glopts->_perpoint_fixed_color_enabled)
|
||||||
glColor(glopts->_perpoint_fixed_color);
|
glColor(glopts->_perpoint_fixed_color);
|
||||||
|
else
|
||||||
|
glColor(glopts->_permesh_color);
|
||||||
|
|
||||||
|
|
||||||
if (req[INT_ATT_NAMES::ATT_VERTCOLOR])
|
if (req[INT_ATT_NAMES::ATT_VERTCOLOR])
|
||||||
|
|
Loading…
Reference in New Issue