Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
1b1216e5
Commit
1b1216e5
authored
May 14, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified SetOffset (VBO_ITEM/OpenGL GAL) function.
parent
a6c8beb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
vbo_item.cpp
common/gal/opengl/vbo_item.cpp
+11
-1
No files found.
common/gal/opengl/vbo_item.cpp
View file @
1b1216e5
...
...
@@ -142,8 +142,18 @@ int VBO_ITEM::GetSize() const
void
VBO_ITEM
::
SetOffset
(
int
aOffset
)
{
if
(
m_offset
==
aOffset
)
return
;
int
delta
=
aOffset
-
m_offset
;
// Change offset for all the stored indices
for
(
int
i
=
0
;
i
<
m_size
;
++
i
)
{
m_indices
+=
delta
;
}
m_offset
=
aOffset
;
// TODO change offset for all the vertices?
}
...
...
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