wined3d: Set the FBO drawbuffer using glDrawBuffer when ARB_DRAW_BUFFERS is not supported.

This commit is contained in:
H. Verbeet 2007-04-16 21:20:01 +02:00 committed by Alexandre Julliard
parent 863a0bfe33
commit 74b5c87ebd

View file

@ -5269,6 +5269,9 @@ void apply_fbo_state(IWineD3DDevice *iface) {
if (GL_SUPPORT(ARB_DRAW_BUFFERS)) {
GL_EXTCALL(glDrawBuffersARB(GL_LIMITS(buffers), This->draw_buffers));
checkGLcall("glDrawBuffers()");
} else {
glDrawBuffer(This->draw_buffers[0]);
checkGLcall("glDrawBuffer()");
}
} else {
GL_EXTCALL(glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0));