mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
Fix issue where the SoftGPU would render double size if "antialiasing" was on.
This commit is contained in:
1 parent
c60292b040
commit
5e6c837ced
2 files changed
+4
-3
No files matched your search
@@ -151,9 +151,9 @@ SoftGPU::~SoftGPU()
|
||||
}
|
||||
|
||||
// Copies RGBA8 data from RAM to the currently bound render target.
|
||||
void CopyToCurrentFboFromRam(u8* data, int srcwidth, int srcheight, int dstwidth, int dstheight)
|
||||
void SoftGPU::CopyToCurrentFboFromRam(u8* data, int srcwidth, int srcheight, int dstwidth, int dstheight)
|
||||
{
|
||||
glDisable(GL_BLEND);
|
||||
glDisable(GL_BLEND);
|
||||
glViewport(0, 0, dstwidth, dstheight);
|
||||
glScissor(0, 0, dstwidth, dstheight);
|
||||
|
||||
@@ -240,7 +240,7 @@ void SoftGPU::CopyDisplayToOutput()
|
||||
void SoftGPU::CopyDisplayToOutputInternal()
|
||||
{
|
||||
// The display always shows 480x272.
|
||||
CopyToCurrentFboFromRam(fb, FB_WIDTH, FB_HEIGHT, PSP_CoreParameter().renderWidth, PSP_CoreParameter().renderHeight);
|
||||
CopyToCurrentFboFromRam(fb, FB_WIDTH, FB_HEIGHT, PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight);
|
||||
}
|
||||
|
||||
void SoftGPU::ProcessEvent(GPUEvent ev) {
|
||||
|
||||
@@ -49,6 +49,7 @@ public:
|
||||
protected:
|
||||
virtual void FastRunLoop(DisplayList &list);
|
||||
virtual void ProcessEvent(GPUEvent ev);
|
||||
void CopyToCurrentFboFromRam(u8* data, int srcwidth, int srcheight, int dstwidth, int dstheight);
|
||||
|
||||
private:
|
||||
void CopyDisplayToOutputInternal();
|
||||
|
||||
Reference in new issue
Block a user