mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 03:44:32 +01:00
Use glLineWidth/glPointSize to specify the width of rasterized lines and size of points.
This commit is contained in:
1 parent
014b3d0a2b
commit
23b817f86c
1 file changed
+9
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user