mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix issue where the SoftGPU would render double size if "antialiasing" was on.
This commit is contained in:
parent
c60292b040
commit
5e6c837ced
2 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue