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

Support render-to-offset within a framebuffer #6326

Merged
merged 1 commit into from
Jun 15, 2014

Conversation

unknownbrackets
Copy link
Collaborator

Fixes #6324.

I don't actually understand why subtracting the offset in setOrtho works for the preview...

-[Unknown]

@unknownbrackets unknownbrackets changed the title Support render-to-offset within a framebuffer. Support render-to-offset within a framebuffer Jun 15, 2014
}
break;
} else if (v->fb_address < fb_address && v->fb_address + v->fb_stride * 4 > fb_address) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should *4 be *2 if the framebuffer format is 16-bit?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use 4 here just to avoid the common case, but it checks the x offset < stride below.

-[Unknown]

hrydgard added a commit that referenced this pull request Jun 15, 2014
Support render-to-offset within a framebuffer
@hrydgard hrydgard merged commit 9503603 into hrydgard:master Jun 15, 2014
@unknownbrackets unknownbrackets deleted the gpu-minor branch June 15, 2014 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GoW Ghost of Sparta shadow issue
2 participants