Read softgpu stencil using existing funcs.

Slower but at least it's the same.
This commit is contained in:
Unknown W. Brackets committed 2013-10-07 01:02:58 -07:00
1 parent b9453f82ca
commit 5c2d418d95
3 files changed
+24 -29

No files matched your search

+14
View File
@@ -959,4 +959,18 @@ void DrawTriangle(const VertexData& v0, const VertexData& v1, const VertexData&
}
}
bool GetCurrentStencilbuffer(GPUDebugBuffer &buffer)
{
buffer.Allocate(gstate.DepthBufStride(), 512, GPU_DBG_FORMAT_8BIT);
u8 *row = buffer.GetData();
for (int y = 0; y < 512; ++y) {
for (int x = 0; x < gstate.DepthBufStride(); ++x) {
row[x] = GetPixelStencil(x, y);
}
row += gstate.DepthBufStride();
}
return true;
}
} // namespace