From ad38f92fe406f2f0c9008e5a85d7e02a6410f9e5 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 17 Jan 2012 00:46:50 +0200 Subject: [PATCH] gpu-gles: schtruck/fpse merge: additional calls no idea what these are for --- plugins/gpu-gles/gpuDraw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/gpu-gles/gpuDraw.c b/plugins/gpu-gles/gpuDraw.c index 69d2d7be..d7d67619 100644 --- a/plugins/gpu-gles/gpuDraw.c +++ b/plugins/gpu-gles/gpuDraw.c @@ -442,9 +442,13 @@ int GLinitialize() glLoadIdentity(); glScalef(1.0f/255.99f,1.0f/255.99f,1.0f); // geforce precision hack #endif + glDepthRangef(0.0f, 1.0f);glError(); + + glPolygonOffset( -0.2f, -0.2f );glError(); glMatrixMode(GL_PROJECTION); glError(); // init projection with psx resolution glLoadIdentity(); glError(); + glOrtho(0,PSXDisplay.DisplayMode.x, PSXDisplay.DisplayMode.y, 0, -1, 1); glError(); -- 2.39.5