From 705c88f19303a754e1ec568f7dabc411bd4e8be6 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 3 Jul 2015 20:26:56 +0200 Subject: [PATCH] gsdx-ogl: disable blending when cleaning integer texture Avoid a warning message on Nvidia --- plugins/GSdx/GSDeviceOGL.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/GSdx/GSDeviceOGL.cpp b/plugins/GSdx/GSDeviceOGL.cpp index fc43d3c0ac..c5a2f33146 100644 --- a/plugins/GSdx/GSDeviceOGL.cpp +++ b/plugins/GSdx/GSDeviceOGL.cpp @@ -493,6 +493,10 @@ void GSDeviceOGL::ClearRenderTarget_i(GSTexture* t, int32 c) OMSetFBO(m_fbo); OMAttachRt(T); + // Blending is not supported when you render to an Integer texture + GLState::blend = false; + glDisable(GL_BLEND); + gl_ClearBufferiv(GL_COLOR, 0, col); OMSetColorMaskState(OMColorMaskSelector(old_color_mask));