Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Dependencies
Cpp
mirrage
Commits
396ed246
Commit
396ed246
authored
Mar 26, 2019
by
Florian Oetke
Browse files
fixed out-of-bounds-error in animation pass
parent
d5cbc199
Pipeline
#2730
passed with stage
in 13 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mirrage/renderer/src/pass/animation_pass.cpp
View file @
396ed246
...
...
@@ -221,6 +221,9 @@ namespace mirrage::renderer {
geo
.
animation_uniform_offset
=
offset
;
}
// add padding to allow overstepping
required_size
+=
gsl
::
narrow
<
std
::
uint32_t
>
(
64u
*
3u
*
4u
*
sizeof
(
float
));
if
(
_animation_uniforms
.
resize
(
required_size
))
{
// recreate DescriptorSet if the buffer has been recreated
auto
anim_desc_buffer_write
=
vk
::
DescriptorBufferInfo
{
...
...
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