Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityGML Viewer
Commits
077613dd
Commit
077613dd
authored
2 months ago
by
Matthias Betz
Browse files
Options
Download
Email Patches
Plain Diff
fix old view data not deleting when loading a new citygml file
parent
80e43ae9
Pipeline
#10992
passed with stages
in 14 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/run_sax.js
+10
-0
public/run_sax.js
with
10 additions
and
0 deletions
+10
-0
public/run_sax.js
+
10
-
0
View file @
077613dd
...
...
@@ -336,9 +336,19 @@ function createViewInformation(gl, viewing) {
gl
.
bindVertexArray
(
null
);
clearViewing
(
gl
);
viewing
.
push
(
viewInformation
);
}
function
clearViewing
(
gl
)
{
for
(
var
viewInfo
in
viewing
)
{
gl
.
deleteBuffer
(
viewInfo
.
posVbo
);
gl
.
deleteBuffer
(
viewInfo
.
colorVbo
);
gl
.
deleteBuffer
(
viewInfo
.
indexVbo
);
gl
.
deleteVertexArray
(
viewInfo
.
vao
);
}
}
function
redraw
(
gl
)
{
gl
.
clearBufferfv
(
gl
.
COLOR
,
0
,
clearColor
);
gl
.
clearBufferfv
(
gl
.
DEPTH
,
0
,
clearDepth
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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