Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
30f5883e
Commit
30f5883e
authored
Dec 13, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Let the context handle the draw buffer in stretch_rect_fbo().
parent
e4e1c279
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
device.c
dlls/wined3d/device.c
+7
-14
No files found.
dlls/wined3d/device.c
View file @
30f5883e
...
...
@@ -5775,16 +5775,16 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, WINED
ENTER_GL
();
context_bind_fbo
(
context
,
GL_DRAW_FRAMEBUFFER
,
NULL
);
glDrawBuffer
(
buffer
);
checkGLcall
(
"glDrawBuffer()"
);
}
else
{
context_set_draw_buffer
(
context
,
buffer
);
}
else
{
TRACE
(
"Destination surface %p is offscreen
\n
"
,
dst_surface
);
ENTER_GL
();
context_bind_fbo
(
context
,
GL_DRAW_FRAMEBUFFER
,
&
context
->
dst_fbo
);
context_attach_surface_fbo
(
context
,
GL_DRAW_FRAMEBUFFER
,
0
,
dst_surface
);
glDrawBuffer
(
GL_COLOR_ATTACHMENT0
);
checkGLcall
(
"glDrawBuffer()"
);
context_set_draw_buffer
(
context
,
GL_COLOR_ATTACHMENT0
);
context_attach_depth_stencil_fbo
(
context
,
GL_DRAW_FRAMEBUFFER
,
NULL
,
FALSE
);
}
glDisable
(
GL_SCISSOR_TEST
);
...
...
@@ -5800,17 +5800,10 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, WINED
checkGLcall
(
"glBlitFramebuffer()"
);
}
IWineD3DSurface_ModifyLocation
(
dst_surface
,
SFLAG_INDRAWABLE
,
TRUE
);
/* If we switched from GL_BACK to GL_FRONT above, we need to switch back here */
if
(
dst_swapchain
&&
dst_surface
==
((
IWineD3DSwapChainImpl
*
)
dst_swapchain
)
->
frontBuffer
&&
((
IWineD3DSwapChainImpl
*
)
dst_swapchain
)
->
backBuffer
)
{
glDrawBuffer
(
GL_BACK
);
checkGLcall
(
"glDrawBuffer()"
);
}
LEAVE_GL
();
context_release
(
context
);
IWineD3DSurface_ModifyLocation
(
dst_surface
,
SFLAG_INDRAWABLE
,
TRUE
);
}
static
HRESULT
WINAPI
IWineD3DDeviceImpl_SetRenderTarget
(
IWineD3DDevice
*
iface
,
DWORD
RenderTargetIndex
,
IWineD3DSurface
*
pRenderTarget
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment