Only use GPU SRGB if source texture supports it #270

Merged
jpark37 merged 1 commit from optional-srgb into master 2021-03-12 13:58:30 -06:00
jpark37 commented 2021-03-11 20:51:52 -06:00 (Migrated from github.com)

Description

The source texture may not be an SRGB format under the hood.

Motivation and Context

Was getting bad colors from CEF generated texture.

How Has This Been Tested?

Colors of default placeholder texture look fine now.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

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.
### Description The source texture may not be an SRGB format under the hood. ### Motivation and Context Was getting bad colors from CEF generated texture. ### How Has This Been Tested? Colors of default placeholder texture look fine now. ### Types of changes - Bug fix (non-breaking change which fixes an issue) ### Checklist: - [x] My code has been run through [clang-format](https://github.com/obsproject/obs-studio/blob/master/.clang-format). - [x] I have read the [**contributing** document](https://github.com/obsproject/obs-studio/blob/master/CONTRIBUTING.rst). - [x] My code is not on the master branch. - [x] The code has been tested. - [x] All commit messages are properly formatted and commits squashed where appropriate. - [x] I have included updates to all appropriate documentation.
RytoEX commented 2021-03-12 11:48:37 -06:00 (Migrated from github.com)

Can confirm this solves the issue on my machine.

image

Can confirm this solves the issue on my machine. ![image](https://user-images.githubusercontent.com/624931/110978315-3a51af00-8331-11eb-9089-4a2576d5049b.png)
RytoEX (Migrated from github.com) approved these changes 2021-03-12 11:48:46 -06:00
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-obsproject/obs-browser!270
No description provided.