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

Apply vertical flip to screen shot image when graphics device type is equal to OpenGL series. #161

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

COx2
Copy link

@COx2 COx2 commented Sep 7, 2022

I found that when the graphics backend is OpenGL, the image obtained with "ScreenCapture.CaptureScreenshotIntoRenderTexture" is vertically flipped compared to other graphics backends.
It seems to be that because of the OpenGL coordinate system is different from it of other graphics backends.
I solved this issue by adding a process that determines if the graphics backend is OpenGL and flips vertically after capturing the GameView.

Please check it.

■ Screen shot: before fix
Before_Fix

■ Screen shot: after fix.
After_Fix

@keijiro keijiro self-assigned this Sep 8, 2022
@keijiro keijiro added the bug Something isn't working label Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants