From 3a35fc06b10db7e460bcc779fabaac505de761f9 Mon Sep 17 00:00:00 2001 From: espes Date: Wed, 8 Jul 2015 04:05:51 +1000 Subject: [PATCH] im bad at git add --patch --- hw/xbox/nv2a.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/xbox/nv2a.c b/hw/xbox/nv2a.c index 2135e7f804..e4fbc0402b 100644 --- a/hw/xbox/nv2a.c +++ b/hw/xbox/nv2a.c @@ -3847,6 +3847,9 @@ static void pgraph_method(NV2AState *d, pgraph_bind_vertex_attributes(d); + unsigned int width, height; + pgraph_get_surface_dimensions(d, &width, &height); + glViewport(0, 0, width, height); pg->gl_primitive_mode = kelvin_primitive_map[parameter];