Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
KennethVanhoey
CGoGN
Commits
0a50654c
Commit
0a50654c
authored
Nov 27, 2012
by
Kenneth Vanhoey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small bug correction in DataPerFaceRender.
parent
a30b1e96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
include/Algo/Render/GL2/dataPerFaceRender.hpp
include/Algo/Render/GL2/dataPerFaceRender.hpp
+3
-6
No files found.
include/Algo/Render/GL2/dataPerFaceRender.hpp
View file @
0a50654c
...
...
@@ -59,7 +59,7 @@ DataPerFaceRender::updateVBO(Utils::VBO& vboPosition, Utils::VBO& vboData, typen
std
::
vector
<
VEC3
>
buffer
;
buffer
.
reserve
(
16384
);
std
::
vector
<
VEC3
>
bufferData
;
std
::
vector
<
T
>
bufferData
;
bufferData
.
reserve
(
16384
);
TraversorCell
<
typename
PFP
::
MAP
,
FACE
>
traFace
(
map
,
good
);
...
...
@@ -93,8 +93,8 @@ DataPerFaceRender::updateVBO(Utils::VBO& vboPosition, Utils::VBO& vboData, typen
vboData
.
setDataSize
(
3
);
vboData
.
allocate
(
bufferData
.
size
());
VEC3
*
ptrCol
=
reinterpret_cast
<
VEC3
*>
(
vboData
.
lockPtr
());
memcpy
(
ptr
Col
,
&
bufferData
[
0
],
bufferData
.
size
()
*
sizeof
(
VEC3
));
T
*
ptrData
=
reinterpret_cast
<
T
*>
(
vboData
.
lockPtr
());
memcpy
(
ptr
Data
,
&
bufferData
[
0
],
bufferData
.
size
()
*
sizeof
(
T
));
vboData
.
releasePtr
();
}
...
...
@@ -105,9 +105,6 @@ inline void DataPerFaceRender::draw(Utils::GLSLShader* sh)
sh
->
disableVertexAttribs
();
}
}
//end namespace VBO
}
//end namespace Algo
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment