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
b5aadfc3
Commit
b5aadfc3
authored
Jul 05, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed segmentation fault when there was no board loaded.
parent
eb041ee2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
opengl_gal.cpp
common/gal/opengl/opengl_gal.cpp
+3
-3
No files found.
common/gal/opengl/opengl_gal.cpp
View file @
b5aadfc3
...
...
@@ -114,6 +114,9 @@ OPENGL_GAL::OPENGL_GAL( wxWindow* aParent, wxEvtHandler* aMouseListener,
// Compute unit semicircle & circle vertices and store them in a buffer for faster drawing
computeCircleVbo
();
// By default we draw non-cached objects, it changes on BeginGroup()/EndGroup()
currentContainer
=
&
nonCachedVbo
;
}
...
...
@@ -437,9 +440,6 @@ void OPENGL_GAL::BeginDrawing()
// Prepare buffer for non-cached items
delete
nonCachedItem
;
nonCachedItem
=
new
VBO_ITEM
(
&
nonCachedVbo
);
// By default we draw non-cached objects, it changes on BeginGroup()/EndGroup()
currentContainer
=
&
nonCachedVbo
;
currentItem
=
nonCachedItem
;
}
...
...
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