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
Feb 18, 2025
by
Matthias Betz
Browse files
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
Hide whitespace changes
Inline
Side-by-side
public/run_sax.js
View file @
077613dd
...
@@ -336,9 +336,19 @@ function createViewInformation(gl, viewing) {
...
@@ -336,9 +336,19 @@ function createViewInformation(gl, viewing) {
gl
.
bindVertexArray
(
null
);
gl
.
bindVertexArray
(
null
);
clearViewing
(
gl
);
viewing
.
push
(
viewInformation
);
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
)
{
function
redraw
(
gl
)
{
gl
.
clearBufferfv
(
gl
.
COLOR
,
0
,
clearColor
);
gl
.
clearBufferfv
(
gl
.
COLOR
,
0
,
clearColor
);
gl
.
clearBufferfv
(
gl
.
DEPTH
,
0
,
clearDepth
);
gl
.
clearBufferfv
(
gl
.
DEPTH
,
0
,
clearDepth
);
...
...
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