aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gpu-gles/gpuDraw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/gpu-gles/gpuDraw.c b/plugins/gpu-gles/gpuDraw.c
index 69d2d7b..d7d6761 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();