From 23b817f86c5f877018be388ac5ab53c28fa49bda Mon Sep 17 00:00:00 2001 From: raven02 Date: Wed, 9 Oct 2013 23:17:51 +0800 Subject: [PATCH] Use glLineWidth/glPointSize to specify the width of rasterized lines and size of points. --- GPU/GLES/Framebuffer.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index 04c3c39816..ed26891db2 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -784,6 +784,15 @@ void FramebufferManager::CopyDisplayToOutput() { if (resized_) { ClearBuffer(); DestroyDraw2DProgram(); +#ifndef USING_GLES2 + if (g_Config.iInternalResolution == 0) { + glLineWidth(std::max(1, (int)(PSP_CoreParameter().renderWidth / 480))); + glPointSize(std::max(1.0f, (float)(PSP_CoreParameter().renderWidth / 480.f))); + } else { + glLineWidth(g_Config.iInternalResolution); + glPointSize((float)g_Config.iInternalResolution); + } +#endif } if (vfb->fbo) {