Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Laszlo Agocs
qtrhi
Commits
2038c979
Commit
2038c979
authored
Mar 14, 2019
by
Laszlo Agocs
Browse files
vk: track depth-stencil "renderbuffer" usage correctly
parent
d32751cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/rhi/qrhivulkan.cpp
View file @
2038c979
...
...
@@ -1833,6 +1833,8 @@ void QRhiVulkan::activateTextureRenderTarget(QRhiCommandBuffer *, QRhiTextureRen
rbD
->
lastActiveFrameSlot
=
currentFrameSlot
;
}
}
if
(
rtD
->
m_desc
.
depthStencilBuffer
())
QRHI_RES
(
QVkRenderBuffer
,
rtD
->
m_desc
.
depthStencilBuffer
())
->
lastActiveFrameSlot
=
currentFrameSlot
;
if
(
rtD
->
m_desc
.
depthTexture
())
{
QVkTexture
*
depthTexD
=
QRHI_RES
(
QVkTexture
,
rtD
->
m_desc
.
depthTexture
());
depthTexD
->
layout
=
VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL
;
...
...
@@ -3718,7 +3720,6 @@ void QVkBuffer::release()
pendingDynamicUpdates
[
i
].
clear
();
}
// the rhi is still around, good
QRHI_RES_RHI
(
QRhiVulkan
);
rhiD
->
releaseQueue
.
append
(
e
);
...
...
@@ -3926,7 +3927,6 @@ void QVkTexture::release()
imageAlloc
=
nullptr
;
nativeHandlesStruct
.
image
=
VK_NULL_HANDLE
;
// the rhi is still around, good
QRHI_RES_RHI
(
QRhiVulkan
);
rhiD
->
releaseQueue
.
append
(
e
);
...
...
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