Module: wine Branch: master Commit: 74b5c87ebde2cfb912c799beb5a93dc0bf54bf99 URL: http://source.winehq.org/git/wine.git/?a=commit;h=74b5c87ebde2cfb912c799beb5...
Author: H. Verbeet hverbeet@gmail.com Date: Mon Apr 16 21:20:01 2007 +0200
wined3d: Set the FBO drawbuffer using glDrawBuffer when ARB_DRAW_BUFFERS is not supported.
---
dlls/wined3d/device.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index d19d773..2fe9c0e 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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));