From 3f4347927ed8054fc872f31050d7905a1f567c1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 3 Dec 2015 22:03:04 +0100 Subject: [PATCH] webgl: Flip WebGL items vertically We do it on the CPU on servo, this way we correctly render the remaining tests, including the WebGL triangle and the texture test. --- src/batch_builder.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/batch_builder.rs b/src/batch_builder.rs index 6bd9977af5..045a6c4a2e 100644 --- a/src/batch_builder.rs +++ b/src/batch_builder.rs @@ -69,10 +69,10 @@ impl<'a> BatchBuilder<'a> { let texture_id = resource_cache.get_webgl_texture(webgl_context_id); let uv = RectUv { - top_left: Point2D::zero(), - top_right: Point2D::new(1.0, 0.0), - bottom_left: Point2D::new(0.0, 1.0), - bottom_right: Point2D::new(1.0, 1.0), + top_left: Point2D::new(0.0, 1.0), + top_right: Point2D::new(1.0, 1.0), + bottom_left: Point2D::zero(), + bottom_right: Point2D::new(1.0, 0.0), }; clipper::clip_rect_to_combined_region(