Skip to content

Commit

Permalink
nv2a/vk: Move GL compat after line_offset adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Nov 14, 2024
1 parent 52956c7 commit 431a3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/xbox/nv2a/pgraph/vk/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ static const char *display_frag_glsl =
"void main()\n"
"{\n"
" vec2 tex_coord = gl_FragCoord.xy/display_size;\n"
" tex_coord.y = 1 - tex_coord.y;\n" // GL compat
" float rel = display_size.y/textureSize(tex, 0).y/line_offset;\n"
" tex_coord.y = 1 + rel*(tex_coord.y - 1);"
" tex_coord.y = 1 - tex_coord.y;\n" // GL compat
" out_Color.rgba = texture(tex, tex_coord);\n"
" if (pvideo_enable) {\n"
" vec2 screen_coord = vec2(gl_FragCoord.x, display_size.y - gl_FragCoord.y) * pvideo_scale.z;\n"
Expand Down

0 comments on commit 431a3bc

Please sign in to comment.