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
3f6c3d2d
Commit
3f6c3d2d
authored
Jan 02, 2008
by
H. Verbeet
Committed by
Alexandre Julliard
Jan 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Properly handle the surface location in stretch_rect_fbo().
parent
bf50e07f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
device.c
dlls/wined3d/device.c
+8
-0
No files found.
dlls/wined3d/device.c
View file @
3f6c3d2d
...
...
@@ -6318,6 +6318,9 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, WINED
TRACE
(
"Source surface %p is onscreen
\n
"
,
src_surface
);
ActivateContext
(
This
,
src_surface
,
CTXUSAGE_RESOURCELOAD
);
/* Make sure the drawable is up to date. In the offscreen case
* attach_surface_fbo() implicitly takes care of this. */
IWineD3DSurface_LoadLocation
(
src_surface
,
SFLAG_INDRAWABLE
,
NULL
);
ENTER_GL
();
GL_EXTCALL
(
glBindFramebufferEXT
(
GL_READ_FRAMEBUFFER_EXT
,
0
));
...
...
@@ -6344,6 +6347,9 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, WINED
TRACE
(
"Destination surface %p is onscreen
\n
"
,
dst_surface
);
ActivateContext
(
This
,
dst_surface
,
CTXUSAGE_RESOURCELOAD
);
/* Make sure the drawable is up to date. In the offscreen case
* attach_surface_fbo() implicitly takes care of this. */
IWineD3DSurface_LoadLocation
(
dst_surface
,
SFLAG_INDRAWABLE
,
NULL
);
ENTER_GL
();
GL_EXTCALL
(
glBindFramebufferEXT
(
GL_DRAW_FRAMEBUFFER_EXT
,
0
));
...
...
@@ -6380,6 +6386,8 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, WINED
checkGLcall
(
"glBlitFramebuffer()"
);
}
IWineD3DSurface_ModifyLocation
(
dst_surface
,
SFLAG_INDRAWABLE
,
TRUE
);
if
(
This
->
render_offscreen
)
{
bind_fbo
(
iface
,
GL_FRAMEBUFFER_EXT
,
&
This
->
fbo
);
}
else
{
...
...
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