Skip to content

Commit

Permalink
FramebufferManager: Fix EFB pokes being offset by 1 in D3D
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Mar 27, 2019
1 parent c28393d commit 92fa6c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/FramebufferManager.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ void FramebufferManager::CreatePokeVertices(std::vector<EFBPokeVertex>* destinat
const float x1 = static_cast<float>(x) * cs_pixel_width - 1.0f; const float x1 = static_cast<float>(x) * cs_pixel_width - 1.0f;
const float y1 = 1.0f - static_cast<float>(y) * cs_pixel_height; const float y1 = 1.0f - static_cast<float>(y) * cs_pixel_height;
const float x2 = x1 + cs_pixel_width; const float x2 = x1 + cs_pixel_width;
const float y2 = y1 + cs_pixel_height; const float y2 = y1 - cs_pixel_height;
destination_list->push_back({{x1, y1, z, 1.0f}, color}); destination_list->push_back({{x1, y1, z, 1.0f}, color});
destination_list->push_back({{x2, y1, z, 1.0f}, color}); destination_list->push_back({{x2, y1, z, 1.0f}, color});
destination_list->push_back({{x1, y2, z, 1.0f}, color}); destination_list->push_back({{x1, y2, z, 1.0f}, color});
Expand Down

0 comments on commit 92fa6c3

Please sign in to comment.