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
0b5bd254
Commit
0b5bd254
authored
Jul 06, 2023
by
Matteo Bruni
Committed by
Alexandre Julliard
Sep 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Handle depth textures in texture2d_read_from_framebuffer().
parent
7d5f9e42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
surface.c
dlls/wined3d/surface.c
+6
-2
texture.c
dlls/wined3d/texture.c
+1
-2
No files found.
dlls/wined3d/surface.c
View file @
0b5bd254
...
...
@@ -374,8 +374,12 @@ void texture2d_read_from_framebuffer(struct wined3d_texture *texture, unsigned i
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
wined3d_context_gl_apply_fbo_state_explicit
(
context_gl
,
GL_READ_FRAMEBUFFER
,
resource
,
sub_resource_idx
,
NULL
,
0
,
src_location
);
if
(
resource
->
format
->
depth_size
||
resource
->
format
->
stencil_size
)
wined3d_context_gl_apply_fbo_state_explicit
(
context_gl
,
GL_READ_FRAMEBUFFER
,
NULL
,
0
,
resource
,
sub_resource_idx
,
src_location
);
else
wined3d_context_gl_apply_fbo_state_explicit
(
context_gl
,
GL_READ_FRAMEBUFFER
,
resource
,
sub_resource_idx
,
NULL
,
0
,
src_location
);
}
/* Select the correct read buffer, and give some debug output.
...
...
dlls/wined3d/texture.c
View file @
0b5bd254
...
...
@@ -3006,8 +3006,7 @@ static BOOL wined3d_texture_gl_load_sysmem(struct wined3d_texture_gl *texture_gl
return
TRUE
;
}
if
(
!
(
texture_gl
->
t
.
resource
.
bind_flags
&
WINED3D_BIND_DEPTH_STENCIL
)
&&
(
sub_resource
->
locations
&
WINED3D_LOCATION_DRAWABLE
))
if
(
sub_resource
->
locations
&
WINED3D_LOCATION_DRAWABLE
)
{
texture2d_read_from_framebuffer
(
&
texture_gl
->
t
,
sub_resource_idx
,
&
context_gl
->
c
,
texture_gl
->
t
.
resource
.
draw_binding
,
dst_location
);
...
...
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