Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
flycast
Commits
c8a92b4e
Commit
c8a92b4e
authored
Mar 06, 2021
by
Libretro-Admin
Browse files
Backport
https://github.com/flyinghead/flycast/commit/190ab6690ac6bcb5218fba55d7c50fc7954ab65c
parent
4c0fab98
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/rend/vulkan/texture.cpp
View file @
c8a92b4e
...
...
@@ -254,7 +254,13 @@ void Texture::SetImage(u32 srcSize, void *srcData, bool isNew, bool genMipmaps)
void
*
data
;
if
(
needsStaging
)
{
if
(
!
stagingBufferData
)
// This can happen if a texture is first created for RTT, then later updated
stagingBufferData
=
std
::
unique_ptr
<
BufferData
>
(
new
BufferData
(
srcSize
,
vk
::
BufferUsageFlagBits
::
eTransferSrc
));
data
=
stagingBufferData
->
MapMemory
();
}
else
data
=
allocation
.
MapMemory
();
verify
(
data
!=
nullptr
);
...
...
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