mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: disable blending when cleaning integer texture
Avoid a warning message on Nvidia
This commit is contained in:
parent
c6f026ee68
commit
705c88f193
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue