wined3d: Use GL_COLOR_ATTACHMENT0 as offscreen buffer with FBOs.

This is used by the offscreen render target->texture blit code if
FBOs are enabled, but FBO_blit is not supported
This commit is contained in:
Stefan Dösinger 2009-12-04 10:21:01 +01:00 committed by Alexandre Julliard
parent 64291c60cb
commit 2b0271b185
1 changed files with 3 additions and 0 deletions

View File

@ -1882,6 +1882,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface,
switch(wined3d_settings.offscreen_rendering_mode) {
case ORM_FBO:
This->offscreenBuffer = GL_COLOR_ATTACHMENT0;
break;
case ORM_PBUFFER:
This->offscreenBuffer = GL_BACK;
break;