From: asl Date: Thu, 30 Aug 2018 06:12:36 +0000 (+0300) Subject: code clean X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=79de462e9e73b90f36cd703bf30241b3db7023a0;p=occt-copy.git code clean --- diff --git a/src/OpenGl/OpenGl_PrimitiveArray.cxx b/src/OpenGl/OpenGl_PrimitiveArray.cxx index 6f20b77c40..ac95c40b07 100644 --- a/src/OpenGl/OpenGl_PrimitiveArray.cxx +++ b/src/OpenGl/OpenGl_PrimitiveArray.cxx @@ -361,14 +361,6 @@ Standard_Boolean OpenGl_PrimitiveArray::buildVBO (const Handle(OpenGl_Context)& Standard_Boolean OpenGl_PrimitiveArray::updateVBO(const Handle(OpenGl_Context)& theCtx) const { - //int aStride = myAttribs->IsInterleaved() ? myAttribs->Stride : myAttribs->AttributeOffset(myAttribs->NbAttributes) / myAttribs->NbElements; - //int aSize = myAttribs->AttributeOffset(myAttribs->NbAttributes); - //myVboAttribs->init(theCtx, aStride, myAttribs->NbElements, myAttribs->Data(), GL_UNSIGNED_BYTE, aStride); - - //myVboAttribs->Bind(theCtx); - //theCtx->core15fwd->glBufferData(myVboAttribs->GetTarget(), aSize, myAttribs->Data(), GL_STATIC_DRAW); - //myVboAttribs->Unbind(theCtx); - myVboAttribs->Bind(theCtx); const std::vector& ranges = myAttribs->InvalidatedRanges(); for (size_t i = 0, n = ranges.size(); i < n; i++)