From 431a3bcdbb8a5e44a1f6eacb393f44c88fd6fcad Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Thu, 14 Nov 2024 02:02:34 -0700 Subject: [PATCH] nv2a/vk: Move GL compat after line_offset adjust --- hw/xbox/nv2a/pgraph/vk/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xbox/nv2a/pgraph/vk/display.c b/hw/xbox/nv2a/pgraph/vk/display.c index 863d1133575..030ab2dea85 100644 --- a/hw/xbox/nv2a/pgraph/vk/display.c +++ b/hw/xbox/nv2a/pgraph/vk/display.c @@ -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"