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
cc65b904
Commit
cc65b904
authored
Feb 24, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Support uploading depth textures in surface_load_texture().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5895f774
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
surface.c
dlls/wined3d/surface.c
+5
-9
No files found.
dlls/wined3d/surface.c
View file @
cc65b904
...
...
@@ -2549,16 +2549,12 @@ static BOOL surface_load_texture(struct wined3d_surface *surface,
struct
wined3d_format
format
;
POINT
dst_point
=
{
0
,
0
};
RECT
src_rect
;
BOOL
depth
;
depth
=
texture
->
resource
.
usage
&
WINED3DUSAGE_DEPTHSTENCIL
;
sub_resource
=
surface_get_sub_resource
(
surface
);
if
(
texture
->
resource
.
usage
&
WINED3DUSAGE_DEPTHSTENCIL
)
{
FIXME
(
"Unimplemented copy from %s for depth/stencil buffers.
\n
"
,
wined3d_debug_location
(
sub_resource
->
locations
));
return
FALSE
;
}
if
(
wined3d_settings
.
offscreen_rendering_mode
!=
ORM_FBO
if
(
!
depth
&&
wined3d_settings
.
offscreen_rendering_mode
!=
ORM_FBO
&&
wined3d_resource_is_offscreen
(
&
texture
->
resource
)
&&
(
sub_resource
->
locations
&
WINED3D_LOCATION_DRAWABLE
))
{
...
...
@@ -2571,7 +2567,7 @@ static BOOL surface_load_texture(struct wined3d_surface *surface,
height
=
wined3d_texture_get_level_height
(
texture
,
surface
->
texture_level
);
SetRect
(
&
src_rect
,
0
,
0
,
width
,
height
);
if
(
sub_resource
->
locations
&
(
WINED3D_LOCATION_TEXTURE_SRGB
|
WINED3D_LOCATION_TEXTURE_RGB
)
if
(
!
depth
&&
sub_resource
->
locations
&
(
WINED3D_LOCATION_TEXTURE_SRGB
|
WINED3D_LOCATION_TEXTURE_RGB
)
&&
(
texture
->
resource
.
format_flags
&
WINED3DFMT_FLAG_FBO_ATTACHABLE_SRGB
)
&&
fbo_blit_supported
(
gl_info
,
WINED3D_BLIT_OP_COLOR_BLIT
,
NULL
,
texture
->
resource
.
usage
,
texture
->
resource
.
pool
,
texture
->
resource
.
format
,
...
...
@@ -2587,7 +2583,7 @@ static BOOL surface_load_texture(struct wined3d_surface *surface,
return
TRUE
;
}
if
(
sub_resource
->
locations
&
(
WINED3D_LOCATION_RB_MULTISAMPLE
|
WINED3D_LOCATION_RB_RESOLVED
)
if
(
!
depth
&&
sub_resource
->
locations
&
(
WINED3D_LOCATION_RB_MULTISAMPLE
|
WINED3D_LOCATION_RB_RESOLVED
)
&&
(
!
srgb
||
(
texture
->
resource
.
format_flags
&
WINED3DFMT_FLAG_FBO_ATTACHABLE_SRGB
))
&&
fbo_blit_supported
(
gl_info
,
WINED3D_BLIT_OP_COLOR_BLIT
,
NULL
,
texture
->
resource
.
usage
,
texture
->
resource
.
pool
,
texture
->
resource
.
format
,
...
...
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