mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
softgpu: Correct stencil debugging.
Fixes crashes in GE debugger when viewing stencil.
This commit is contained in:
parent
9367ce82ac
commit
b60b1e84b2
1 changed files with 2 additions and 2 deletions
|
@ -1256,8 +1256,8 @@ bool SoftGPU::GetCurrentStencilbuffer(GPUDebugBuffer &buffer) {
|
||||||
buffer.Allocate(size.x, size.y, GPU_DBG_FORMAT_8BIT);
|
buffer.Allocate(size.x, size.y, GPU_DBG_FORMAT_8BIT);
|
||||||
|
|
||||||
u8 *row = buffer.GetData();
|
u8 *row = buffer.GetData();
|
||||||
for (int16_t y = 0; y < size.x; ++y) {
|
for (int16_t y = 0; y < size.y; ++y) {
|
||||||
for (int16_t x = 0; x < size.y; ++x) {
|
for (int16_t x = 0; x < size.x; ++x) {
|
||||||
row[x] = GetPixelStencil(gstate.FrameBufFormat(), gstate.FrameBufStride(), x, y);
|
row[x] = GetPixelStencil(gstate.FrameBufFormat(), gstate.FrameBufStride(), x, y);
|
||||||
}
|
}
|
||||||
row += size.x;
|
row += size.x;
|
||||||
|
|
Loading…
Add table
Reference in a new issue