Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Frame dumping in VideoSoftware. #622

Merged
merged 1 commit into from
Jul 17, 2014

Conversation

phire
Copy link
Member

@phire phire commented Jul 14, 2014

Old code dumped the efb, which was no-longer relevant since the backend gained xfb support.

New code dumps the colour texture which is about to be rendered to the screen so correctly reflects the bypassXFB option.

@phire
Copy link
Member Author

phire commented Jul 14, 2014

@dolphin-emu-bot rebuild

delete[] data;
static void DumpColorTexture(const std::string& filename, u32 width, u32 height)
{
(void)TextureToPng(SWRenderer::getCurrentColorTexture(), width * 4, filename, width, height, true);

This comment was marked as off-topic.

This comment was marked as off-topic.

@delroth
Copy link
Member

delroth commented Jul 16, 2014

@neobrain can you quickly review this? it's short and would allow fifocisw :)

@neobrain
Copy link
Member

If this works, LGTM.

@delroth
Copy link
Member

delroth commented Jul 16, 2014

@phire: This comment grants you the permission to merge this pull request whenever you think it is ready. After addressing the remaining comments, click this link to merge.


@phire if you've tested it and it works with both bypass XFB (required for FIFO logs) and standard XFB handling, feel free to merge.

@dolphin-emu-bot allowmerge

Old code dumped the efb, which was no-longer relevant since the
backend gained xfb support.
New code dumps the colour texture which is about to be rendered to
the screen so correctly reflects the bypassXFB option.
@phire
Copy link
Member Author

phire commented Jul 17, 2014

Yep, Both bypass and standard work.

Merging

dolphin-emu-bot added a commit that referenced this pull request Jul 17, 2014
Fixed Frame dumping in VideoSoftware.
@dolphin-emu-bot dolphin-emu-bot merged commit 51dff5a into dolphin-emu:master Jul 17, 2014
@phire phire deleted the sw-fix-frame-dump branch July 18, 2014 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants