mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 06:50:30 +00:00
wined3d: Set the FBO drawbuffer using glDrawBuffer when ARB_DRAW_BUFFERS is not supported.
This commit is contained in:
parent
863a0bfe33
commit
74b5c87ebd
|
@ -5269,6 +5269,9 @@ void apply_fbo_state(IWineD3DDevice *iface) {
|
||||||
if (GL_SUPPORT(ARB_DRAW_BUFFERS)) {
|
if (GL_SUPPORT(ARB_DRAW_BUFFERS)) {
|
||||||
GL_EXTCALL(glDrawBuffersARB(GL_LIMITS(buffers), This->draw_buffers));
|
GL_EXTCALL(glDrawBuffersARB(GL_LIMITS(buffers), This->draw_buffers));
|
||||||
checkGLcall("glDrawBuffers()");
|
checkGLcall("glDrawBuffers()");
|
||||||
|
} else {
|
||||||
|
glDrawBuffer(This->draw_buffers[0]);
|
||||||
|
checkGLcall("glDrawBuffer()");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
GL_EXTCALL(glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0));
|
GL_EXTCALL(glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0));
|
||||||
|
|
Loading…
Reference in a new issue