mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 05:44:10 +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)) {
|
||||
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));
|
||||
|
|
Loading…
Reference in a new issue