Fix incorrect portrait mode rotation center on Windows (#1851)
This commit is contained in:
@@ -29,7 +29,7 @@ vertex_t generate_fullscreen_triangle_vertex(uint vertex_id, int rotate_texture_
|
||||
float2x2 rotation_matrix = { cos(rotation_radians), -sin(rotation_radians),
|
||||
sin(rotation_radians), cos(rotation_radians) };
|
||||
float2 rotation_center = { 0.5, 0.5 };
|
||||
tex_coord = round(tex_coord + mul(rotation_matrix, tex_coord - rotation_center));
|
||||
tex_coord = round(rotation_center + mul(rotation_matrix, tex_coord - rotation_center));
|
||||
}
|
||||
|
||||
#if defined(LEFT_SUBSAMPLING)
|
||||
|
||||
Reference in New Issue
Block a user