GLMeta: Disable blending when blitting via quad draw

This commit is contained in:
Jonas Kulla 2014-07-20 13:20:43 +02:00
parent 27b7815f52
commit c1d627e0ae
1 changed files with 2 additions and 0 deletions

View File

@ -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);