diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-18 15:22:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-18 15:22:14 +0200 |
commit | c5f1ec8040f951f35d0d965c26fe3c953d2a8cc8 (patch) | |
tree | 8b06b4ea8a82f73ae546c288b995a8fc629f7ec3 /src/video_core/host_shaders/convert_d32f_to_abgr8.frag | |
parent | Merge pull request #11791 from german77/bufferx (diff) | |
parent | Changes based on hardware tests (diff) | |
download | yuzu-c5f1ec8040f951f35d0d965c26fe3c953d2a8cc8.tar yuzu-c5f1ec8040f951f35d0d965c26fe3c953d2a8cc8.tar.gz yuzu-c5f1ec8040f951f35d0d965c26fe3c953d2a8cc8.tar.bz2 yuzu-c5f1ec8040f951f35d0d965c26fe3c953d2a8cc8.tar.lz yuzu-c5f1ec8040f951f35d0d965c26fe3c953d2a8cc8.tar.xz yuzu-c5f1ec8040f951f35d0d965c26fe3c953d2a8cc8.tar.zst yuzu-c5f1ec8040f951f35d0d965c26fe3c953d2a8cc8.zip |
Diffstat (limited to 'src/video_core/host_shaders/convert_d32f_to_abgr8.frag')
-rw-r--r-- | src/video_core/host_shaders/convert_d32f_to_abgr8.frag | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/host_shaders/convert_d32f_to_abgr8.frag b/src/video_core/host_shaders/convert_d32f_to_abgr8.frag index 04cfef8b5..4e5a9f955 100644 --- a/src/video_core/host_shaders/convert_d32f_to_abgr8.frag +++ b/src/video_core/host_shaders/convert_d32f_to_abgr8.frag @@ -9,6 +9,6 @@ layout(location = 0) out vec4 color; void main() { ivec2 coord = ivec2(gl_FragCoord.xy); - float depth = textureLod(depth_tex, coord, 0).r; + float depth = texelFetch(depth_tex, coord, 0).r; color = vec4(depth, depth, depth, 1.0); } |