diff options
| author | Arisotura <thetotalworm@gmail.com> | 2019-06-04 15:53:08 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-04 15:53:08 +0200 | 
| commit | 97f4b5f70b67ea5cc142fbd1f3982c36b915a5d9 (patch) | |
| tree | bd3fb3325db3743eef00cf3ddffafdeb644370a9 /src/GPU3D_Soft.cpp | |
| parent | f769d6e23f7635910e3f6659c6b55d8c6a8e96ff (diff) | |
| parent | 3134c8fc66d1fbd5706930a3e3e64ce118406fe5 (diff) | |
Merge branch 'master' into fast-forward-hotkey
Diffstat (limited to 'src/GPU3D_Soft.cpp')
| -rw-r--r-- | src/GPU3D_Soft.cpp | 11 | 
1 files changed, 4 insertions, 7 deletions
diff --git a/src/GPU3D_Soft.cpp b/src/GPU3D_Soft.cpp index 29b46e1..932b5d4 100644 --- a/src/GPU3D_Soft.cpp +++ b/src/GPU3D_Soft.cpp @@ -129,9 +129,9 @@ void DeInit()  void Reset()  { -    memset(ColorBuffer, 0, 256*192 * 4); -    memset(DepthBuffer, 0, 256*192 * 4); -    memset(AttrBuffer, 0, 256*192 * 4); +    memset(ColorBuffer, 0, BufferSize * 2 * 4); +    memset(DepthBuffer, 0, BufferSize * 2 * 4); +    memset(AttrBuffer, 0, BufferSize * 2 * 4);      PrevIsShadowMask = false; @@ -2106,17 +2106,14 @@ void RenderThreadFunc()      }  } -void RequestLine(int line) +u32* GetLine(int line)  {      if (RenderThreadRunning)      {          if (line < 192)              Platform::Semaphore_Wait(Sema_ScanlineCount);      } -} -u32* GetLine(int line) -{      return &ColorBuffer[(line * ScanlineWidth) + FirstPixelOffset];  }  |