Skip to content

Commit

Permalink
Should be bufferWidth here, not width. Thanks unknown.
Browse files Browse the repository at this point in the history
Get rid of Source.cpp, oops.
  • Loading branch information
hrydgard committed Nov 5, 2017
1 parent 9e65ae1 commit b991dd5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions GPU/Common/FramebufferCommon.cpp
Expand Up @@ -2033,9 +2033,9 @@ void FramebufferManagerCommon::PackFramebufferSync_(VirtualFramebuffer *vfb, int
}

void FramebufferManagerCommon::ReadFramebufferToMemory(VirtualFramebuffer *vfb, bool sync, int x, int y, int w, int h) {
// Clamp to width. Sometimes block transfers can cause this to hit.
if (x + w >= vfb->width) {
w = vfb->width - x;
// Clamp to bufferWidth. Sometimes block transfers can cause this to hit.
if (x + w >= vfb->bufferWidth) {
w = vfb->bufferWidth - x;
}
if (vfb) {
// We'll pseudo-blit framebuffers here to get a resized version of vfb.
Expand Down
3 changes: 1 addition & 2 deletions GPU/GPU.vcxproj
Expand Up @@ -360,7 +360,6 @@
<ClCompile Include="Software\SoftGpu.cpp" />
<ClCompile Include="Software\TransformUnit.cpp" />
<ClCompile Include="Common\TextureDecoder.cpp" />
<ClCompile Include="Source.cpp" />
<ClCompile Include="Vulkan\DepalettizeShaderVulkan.cpp" />
<ClCompile Include="Vulkan\DrawEngineVulkan.cpp" />
<ClCompile Include="Vulkan\FragmentShaderGeneratorVulkan.cpp" />
Expand All @@ -386,4 +385,4 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
</Project>
5 changes: 1 addition & 4 deletions GPU/GPU.vcxproj.filters
Expand Up @@ -531,11 +531,8 @@
<ClCompile Include="Vulkan\StencilBufferVulkan.cpp">
<Filter>Vulkan</Filter>
</ClCompile>
<ClCompile Include="Source.cpp">
<Filter>Common</Filter>
</ClCompile>
<ClCompile Include="Common\StencilCommon.cpp">
<Filter>Common</Filter>
</ClCompile>
</ItemGroup>
</Project>
</Project>
Empty file removed GPU/Source.cpp
Empty file.

0 comments on commit b991dd5

Please sign in to comment.