From c1d627e0aea9a8d42428575c6465f53a6fc79cac Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Sun, 20 Jul 2014 13:20:43 +0200 Subject: [PATCH] GLMeta: Disable blending when blitting via quad draw --- src/gl-meta.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gl-meta.cpp b/src/gl-meta.cpp index e4df8c4..1bfe9cd 100644 --- a/src/gl-meta.cpp +++ b/src/gl-meta.cpp @@ -193,9 +193,11 @@ void blitRectangle(const IntRect &src, const IntRect &dst, bool smooth) if (smooth) TEX::setSmooth(true); + glState.blend.pushSet(false); Quad &quad = shState->gpQuad(); quad.setTexPosRect(src, dst); quad.draw(); + glState.blend.pop(); if (smooth) TEX::setSmooth(false);