Skip to content

Commit

Permalink
rendervulkan: Be more explicit about setTextureSrgb
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Oct 25, 2023
1 parent d6f2ecd commit efee23b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rendervulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3329,7 +3329,7 @@ struct BlitPushData_t
borderMask = frameInfo->borderMask();
frameId = s_frameId++;
blurRadius = frameInfo->blurRadius ? ( frameInfo->blurRadius * 2 ) - 1 : 0;

bind_all_layers
u_linearToNits = g_flInternalDisplayBrightnessNits;
u_nitsToLinear = 1.0f / g_flInternalDisplayBrightnessNits;
u_itmSdrNits = g_flHDRItmSdrNits;
Expand Down Expand Up @@ -3469,7 +3469,7 @@ void bind_all_layers(CVulkanCmdBuffer* cmdBuffer, const struct FrameInfo_t *fram
|| (layer->filter == GamescopeUpscaleFilter::LINEAR && !layer->viewConvertsToLinearAutomatically());

cmdBuffer->bindTexture(i, layer->tex);
cmdBuffer->setTextureSrgb(i, false);
cmdBuffer->setTextureSrgb(i, layer->colorspace != GAMESCOPE_APP_TEXTURE_COLORSPACE_LINEAR);
cmdBuffer->setSamplerNearest(i, nearest);
cmdBuffer->setSamplerUnnormalized(i, true);
}
Expand Down

0 comments on commit efee23b

Please sign in to comment.