1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Fix multisampling in Adreno devices

In GLES blits between multisampled and not multisampled framebuffers must
have the same source and destination coords.
This commit is contained in:
Francisco Zurita 2017-02-12 19:32:44 -05:00 committed by Sergey Lipskiy
parent 7775081661
commit ac815ee595

View File

@ -381,9 +381,10 @@ public:
const s32 adrenoCoordFix = (m_renderer == Renderer::Adreno) ? 1 : 0;
m_enableScissor->enable(false);
glBlitFramebuffer(
_params.srcX0, _params.srcY0, _params.srcX1, _params.srcY1,
adrenoCoordFix +_params.dstX0, _params.dstY0, _params.dstX1, _params.dstY1,
adrenoCoordFix + _params.srcX0, _params.srcY0, _params.srcX1, _params.srcY1,
adrenoCoordFix + _params.dstX0, _params.dstY0, _params.dstX1, _params.dstY1,
GLbitfield(_params.mask), GLenum(_params.filter)
);
m_enableScissor->enable(true);