D3D9: Correct depth readback.

This commit is contained in:
Unknown W. Brackets committed 2022-10-09 13:21:04 -07:00
1 parent 199bfe4596
commit d83f736b1f
2 files changed
+6 -4

No files matched your search

+4 -1
View File
@@ -134,7 +134,10 @@
}
void FramebufferManagerDX9::PackFramebufferSync(VirtualFramebuffer *vfb, int x, int y, int w, int h, RasterChannel channel) {
if (channel != RASTER_COLOR) {
if (channel == RASTER_DEPTH) {
PackDepthbuffer(vfb, x, y, w, h);
return;
} else if (channel != RASTER_COLOR) {
// Unsupported
WARN_LOG_ONCE(d3ddepthreadback, G3D, "Not yet supporting depth readbacks on DX9");
return;