gsdx-ogl: disable blending when cleaning integer texture

Avoid a warning message on Nvidia
This commit is contained in:
Gregory Hainaut 2015-07-03 20:26:56 +02:00
parent c6f026ee68
commit 705c88f193
1 changed files with 4 additions and 0 deletions

View File

@ -493,6 +493,10 @@ void GSDeviceOGL::ClearRenderTarget_i(GSTexture* t, int32 c)
OMSetFBO(m_fbo); OMSetFBO(m_fbo);
OMAttachRt(T); 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); gl_ClearBufferiv(GL_COLOR, 0, col);
OMSetColorMaskState(OMColorMaskSelector(old_color_mask)); OMSetColorMaskState(OMColorMaskSelector(old_color_mask));