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
82f067f5
Commit
82f067f5
authored
Oct 19, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 20, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Allow loading multisampled surfaces into sysmem.
parent
f0c85ff8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
surface.c
dlls/wined3d/surface.c
+19
-0
No files found.
dlls/wined3d/surface.c
View file @
82f067f5
...
...
@@ -5789,6 +5789,9 @@ static void surface_load_sysmem(struct wined3d_surface *surface,
{
surface_prepare_system_memory
(
surface
);
if
(
surface
->
flags
&
(
SFLAG_INRB_MULTISAMPLE
|
SFLAG_INRB_RESOLVED
))
surface_load_location
(
surface
,
SFLAG_INTEXTURE
,
NULL
);
/* Download the surface to system memory. */
if
(
surface
->
flags
&
(
SFLAG_INTEXTURE
|
SFLAG_INSRGBTEX
))
{
...
...
@@ -5945,6 +5948,22 @@ static HRESULT surface_load_texture(struct wined3d_surface *surface,
return
WINED3D_OK
;
}
if
(
surface
->
flags
&
(
SFLAG_INRB_MULTISAMPLE
|
SFLAG_INRB_RESOLVED
)
&&
(
surface
->
resource
.
format
->
flags
&
attach_flags
)
==
attach_flags
&&
fbo_blit_supported
(
gl_info
,
WINED3D_BLIT_OP_COLOR_BLIT
,
NULL
,
surface
->
resource
.
usage
,
surface
->
resource
.
pool
,
surface
->
resource
.
format
,
NULL
,
surface
->
resource
.
usage
,
surface
->
resource
.
pool
,
surface
->
resource
.
format
))
{
DWORD
src_location
=
surface
->
flags
&
SFLAG_INRB_RESOLVED
?
SFLAG_INRB_RESOLVED
:
SFLAG_INRB_MULTISAMPLE
;
DWORD
dst_location
=
srgb
?
SFLAG_INSRGBTEX
:
SFLAG_INTEXTURE
;
RECT
rect
=
{
0
,
0
,
surface
->
resource
.
width
,
surface
->
resource
.
height
};
surface_blt_fbo
(
device
,
WINED3DTEXF_POINT
,
surface
,
src_location
,
&
rect
,
surface
,
dst_location
,
&
rect
);
return
WINED3D_OK
;
}
/* Upload from system memory */
d3dfmt_get_conv
(
surface
,
TRUE
/* We need color keying */
,
...
...
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