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
d56c168d
Commit
d56c168d
authored
Feb 18, 2015
by
Matteo Bruni
Committed by
Alexandre Julliard
Feb 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set the surface pitch for user-memory surfaces.
parent
d49d2a5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
surface.c
dlls/wined3d/surface.c
+7
-1
No files found.
dlls/wined3d/surface.c
View file @
d56c168d
...
...
@@ -2187,10 +2187,16 @@ HRESULT wined3d_surface_update_desc(struct wined3d_surface *surface,
surface
->
resource
.
multisample_type
=
texture_resource
->
multisample_type
;
surface
->
resource
.
multisample_quality
=
texture_resource
->
multisample_quality
;
if
(
surface
->
pitch
)
{
surface
->
resource
.
size
=
height
*
surface
->
pitch
;
}
else
{
/* User memory surfaces don't have the regular surface alignment. */
surface
->
resource
.
size
=
wined3d_format_calculate_size
(
texture_resource
->
format
,
texture_resource
->
device
->
surface_alignment
,
width
,
height
,
1
);
1
,
width
,
height
,
1
);
surface
->
pitch
=
wined3d_format_calculate_pitch
(
texture_resource
->
format
,
width
);
}
/* The format might be changed to a format that needs conversion.
* If the surface didn't use PBOs previously but could now, don't
...
...
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