|
@@ -2283,7 +2283,8 @@ static D3D11_Shader SelectShader(SDL_Renderer *renderer, const D3D11_PixelShader
|
|
|
{
|
|
{
|
|
|
if (shader_constants) {
|
|
if (shader_constants) {
|
|
|
if (renderer->current_colorspace == SDL_COLORSPACE_HDR10) {
|
|
if (renderer->current_colorspace == SDL_COLORSPACE_HDR10) {
|
|
|
- if (shader_constants->input_type == INPUTTYPE_HDR10 &&
|
|
|
|
|
|
|
+ if (shader_constants->texture_type == TEXTURETYPE_RGB &&
|
|
|
|
|
+ shader_constants->input_type == INPUTTYPE_HDR10 &&
|
|
|
!PQShaderScalesInput(shader_constants)) {
|
|
!PQShaderScalesInput(shader_constants)) {
|
|
|
// Do a simple 1-1 copy
|
|
// Do a simple 1-1 copy
|
|
|
return SHADER_RGB_SIMPLE;
|
|
return SHADER_RGB_SIMPLE;
|