mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +01:00
thin3d: Add Framebuffer::HasDepthStencil, check it before depth/stencil copies
ResizeFramebufFBO now asks the framebuffer whether it has a depth/stencil buffer instead of guessing from the z address and stride. Vulkan CopyFramebuffer gets the debug asserts and bail-out BlitFramebuffer already had, and GL copies and blits get the same, so a copy out of a framebuffer without depth/stencil asserts where it's queued instead of in the queue runner. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
8fb0f74255
commit
074b66b49b
6 files changed
+35
-5
No files matched your search
@@ -1839,6 +1839,7 @@ public:
|
||||
height_ = fb->height;
|
||||
layers_ = fb->numLayers;
|
||||
multiSampleLevel_ = multiSampleLevel;
|
||||
hasDepthStencil_ = fb->HasDepth();
|
||||
}
|
||||
~VKFramebuffer() {
|
||||
_assert_msg_(buf_, "Null buf_ in VKFramebuffer - double delete?");
|
||||
|
||||
Reference in new issue
Block a user