mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
sooooooooooorry forget this file, now efb to ram if fixed
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4844 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
e7f8068b12
commit
9d36cd05be
1 changed files with 5 additions and 2 deletions
|
@ -358,13 +358,16 @@ void EncodeToRam(u32 address, bool bFromZBuffer, bool bIsIntensityFmt, u32 copyf
|
||||||
float MValueX = Renderer::GetTargetScaleX();
|
float MValueX = Renderer::GetTargetScaleX();
|
||||||
float MValueY = Renderer::GetTargetScaleY();
|
float MValueY = Renderer::GetTargetScaleY();
|
||||||
|
|
||||||
|
float Xstride = (float)((Renderer::GetFullTargetWidth() - Renderer::GetTargetWidth()) / 2);
|
||||||
|
float Ystride = (float)((Renderer::GetFullTargetHeight() - Renderer::GetTargetHeight()) / 2);
|
||||||
|
|
||||||
float sampleStride = bScaleByHalf?2.0f:1.0f;
|
float sampleStride = bScaleByHalf?2.0f:1.0f;
|
||||||
|
|
||||||
TextureConversionShader::SetShaderParameters(
|
TextureConversionShader::SetShaderParameters(
|
||||||
(float)expandedWidth,
|
(float)expandedWidth,
|
||||||
expandedHeight * MValueY,
|
expandedHeight * MValueY,
|
||||||
source.left * MValueX,
|
source.left * MValueX + Xstride ,
|
||||||
source.top * MValueY,
|
source.top * MValueY + Ystride,
|
||||||
sampleStride * MValueX,
|
sampleStride * MValueX,
|
||||||
sampleStride * MValueY,
|
sampleStride * MValueY,
|
||||||
(float)Renderer::GetTargetWidth(),
|
(float)Renderer::GetTargetWidth(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue