Skip to content

Add check for Metal in render function #489

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

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

Conversation

PatTheMav
Copy link
Member

Description

Adds an explicit check for the OpenGL renderer in the current render function to set the special rect effect only for that renderer.

Motivation and Context

Metal does not require the "rect" effect and can use the default effect just like D3D11.

This change does not negatively affect OBS Studio running with OpenGL as its renderer, but unlocks use of browser sources for the Metal renderer.

How Has This Been Tested?

Tested on macOS 15.

Types of changes

  • Tweak (non-breaking change to improve existing functionality)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

Metal does not require the "rect" effect and can use the default
effect just like D3D11.
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.

1 participant