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
f8e62bc5
Commit
f8e62bc5
authored
Jan 10, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Place the cursor texture in the default pool.
parent
c072a456
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
device.c
dlls/wined3d/device.c
+3
-3
No files found.
dlls/wined3d/device.c
View file @
f8e62bc5
...
@@ -3809,8 +3809,8 @@ static struct wined3d_texture *wined3d_device_create_cursor_texture(struct wined
...
@@ -3809,8 +3809,8 @@ static struct wined3d_texture *wined3d_device_create_cursor_texture(struct wined
desc
.
format
=
WINED3DFMT_B8G8R8A8_UNORM
;
desc
.
format
=
WINED3DFMT_B8G8R8A8_UNORM
;
desc
.
multisample_type
=
WINED3D_MULTISAMPLE_NONE
;
desc
.
multisample_type
=
WINED3D_MULTISAMPLE_NONE
;
desc
.
multisample_quality
=
0
;
desc
.
multisample_quality
=
0
;
desc
.
usage
=
0
;
desc
.
usage
=
WINED3DUSAGE_DYNAMIC
;
desc
.
pool
=
WINED3D_POOL_
SYSTEM_MEM
;
desc
.
pool
=
WINED3D_POOL_
DEFAULT
;
desc
.
width
=
cursor_image
->
resource
.
width
;
desc
.
width
=
cursor_image
->
resource
.
width
;
desc
.
height
=
cursor_image
->
resource
.
height
;
desc
.
height
=
cursor_image
->
resource
.
height
;
desc
.
depth
=
1
;
desc
.
depth
=
1
;
...
@@ -3825,7 +3825,7 @@ static struct wined3d_texture *wined3d_device_create_cursor_texture(struct wined
...
@@ -3825,7 +3825,7 @@ static struct wined3d_texture *wined3d_device_create_cursor_texture(struct wined
}
}
surface
=
surface_from_resource
(
wined3d_texture_get_sub_resource
(
texture
,
0
));
surface
=
surface_from_resource
(
wined3d_texture_get_sub_resource
(
texture
,
0
));
if
(
FAILED
(
wined3d_surface_map
(
surface
,
&
map_desc
,
NULL
,
0
)))
if
(
FAILED
(
wined3d_surface_map
(
surface
,
&
map_desc
,
NULL
,
WINED3D_MAP_DISCARD
)))
{
{
ERR
(
"Failed to map destination surface.
\n
"
);
ERR
(
"Failed to map destination surface.
\n
"
);
wined3d_texture_decref
(
texture
);
wined3d_texture_decref
(
texture
);
...
...
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