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
c4f7bdcf
Commit
c4f7bdcf
authored
Apr 11, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the texture dimension helpers in surface_load_renderbuffer().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5ee82583
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
surface.c
dlls/wined3d/surface.c
+5
-2
No files found.
dlls/wined3d/surface.c
View file @
c4f7bdcf
...
...
@@ -3193,7 +3193,10 @@ static HRESULT surface_load_texture(struct wined3d_surface *surface,
static
void
surface_load_renderbuffer
(
struct
wined3d_surface
*
surface
,
struct
wined3d_context
*
context
,
DWORD
dst_location
)
{
const
RECT
rect
=
{
0
,
0
,
surface
->
resource
.
width
,
surface
->
resource
.
height
};
struct
wined3d_texture
*
texture
=
surface
->
container
;
const
RECT
rect
=
{
0
,
0
,
wined3d_texture_get_level_width
(
texture
,
surface
->
texture_level
),
wined3d_texture_get_level_height
(
texture
,
surface
->
texture_level
)};
DWORD
locations
=
surface_get_sub_resource
(
surface
)
->
locations
;
DWORD
src_location
;
...
...
@@ -3206,7 +3209,7 @@ static void surface_load_renderbuffer(struct wined3d_surface *surface, struct wi
else
/* surface_blt_fbo will load the source location if necessary. */
src_location
=
WINED3D_LOCATION_TEXTURE_RGB
;
surface_blt_fbo
(
surface
->
container
->
resource
.
device
,
context
,
WINED3D_TEXF_POINT
,
surface_blt_fbo
(
texture
->
resource
.
device
,
context
,
WINED3D_TEXF_POINT
,
surface
,
src_location
,
&
rect
,
surface
,
dst_location
,
&
rect
);
}
...
...
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