mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Set line width in constructor too.
This commit is contained in:
1 parent
23b817f86c
commit
95fda8dffa
2 files changed
+15
-9
No files matched your search
@@ -267,6 +267,7 @@ FramebufferManager::FramebufferManager() :
|
||||
}
|
||||
gstate_c.gpuVendor = gpuVendor;
|
||||
NOTICE_LOG(SCEGE, "GPU Vendor : %s", cvendor);
|
||||
SetLineWidth();
|
||||
}
|
||||
|
||||
FramebufferManager::~FramebufferManager() {
|
||||
@@ -740,6 +741,18 @@ void FramebufferManager::SetRenderFrameBuffer() {
|
||||
}
|
||||
}
|
||||
|
||||
void FramebufferManager::SetLineWidth() {
|
||||
#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
|
||||
}
|
||||
|
||||
void FramebufferManager::CopyDisplayToOutput() {
|
||||
fbo_unbind();
|
||||
currentRenderVfb_ = 0;
|
||||
@@ -784,15 +797,7 @@ 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
|
||||
SetLineWidth();
|
||||
}
|
||||
|
||||
if (vfb->fbo) {
|
||||
|
||||
Reference in new issue
Block a user