From 79de462e9e73b90f36cd703bf30241b3db7023a0 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 30 Aug 2018 09:12:36 +0300 Subject: [PATCH] code clean --- src/OpenGl/OpenGl_PrimitiveArray.cxx | 8 -------- 1 file changed, 8 deletions(-) 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++) -- 2.39.5