Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
51438eec
Commit
51438eec
authored
Dec 15, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use surface_is_offscreen() in fb_copy_to_texture_hwstretch().
parent
483d2415
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
surface.c
dlls/wined3d/surface.c
+6
-3
No files found.
dlls/wined3d/surface.c
View file @
51438eec
...
...
@@ -3210,13 +3210,15 @@ static inline void fb_copy_to_texture_hwstretch(IWineD3DSurfaceImpl *This, IWine
GLenum
drawBuffer
=
GL_BACK
;
GLenum
texture_target
;
BOOL
noBackBufferBackup
;
BOOL
src_offscreen
;
TRACE
(
"Using hwstretch blit
\n
"
);
/* Activate the Proper context for reading from the source surface, set it up for blitting */
context
=
context_acquire
(
myDevice
,
SrcSurface
,
CTXUSAGE_BLIT
);
surface_internal_preload
((
IWineD3DSurface
*
)
This
,
SRGB_RGB
);
noBackBufferBackup
=
!
swapchain
&&
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
;
src_offscreen
=
surface_is_offscreen
(
SrcSurface
);
noBackBufferBackup
=
src_offscreen
&&
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
;
if
(
!
noBackBufferBackup
&&
!
Src
->
texture_name
)
{
/* Get it a description */
...
...
@@ -3232,7 +3234,7 @@ static inline void fb_copy_to_texture_hwstretch(IWineD3DSurfaceImpl *This, IWine
/* Got more than one aux buffer? Use the 2nd aux buffer */
drawBuffer
=
GL_AUX1
;
}
else
if
((
swapchai
n
||
myDevice
->
offscreenBuffer
==
GL_BACK
)
&&
context
->
aux_buffers
>=
1
)
else
if
((
!
src_offscree
n
||
myDevice
->
offscreenBuffer
==
GL_BACK
)
&&
context
->
aux_buffers
>=
1
)
{
/* Only one aux buffer, but it isn't used (Onscreen rendering, or non-aux orm)? Use it! */
drawBuffer
=
GL_AUX0
;
...
...
@@ -3258,7 +3260,8 @@ static inline void fb_copy_to_texture_hwstretch(IWineD3DSurfaceImpl *This, IWine
Src
->
Flags
&=
~
SFLAG_INTEXTURE
;
}
if
(
surface_is_offscreen
(
SrcSurface
))
{
if
(
src_offscreen
)
{
TRACE
(
"Reading from an offscreen target
\n
"
);
upsidedown
=
!
upsidedown
;
glReadBuffer
(
myDevice
->
offscreenBuffer
);
...
...
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