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
035012d5
Commit
035012d5
authored
Jan 15, 2014
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Load textures from dib without copying to sysmem first.
parent
42927d0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
surface.c
dlls/wined3d/surface.c
+6
-6
No files found.
dlls/wined3d/surface.c
View file @
035012d5
...
...
@@ -36,6 +36,9 @@ WINE_DECLARE_DEBUG_CHANNEL(d3d);
#define MAXLOCKCOUNT 50
/* After this amount of locks do not free the sysmem copy. */
static
const
DWORD
surface_simple_locations
=
SFLAG_INDIB
|
SFLAG_INUSERMEM
|
SFLAG_INSYSMEM
;
static
void
surface_cleanup
(
struct
wined3d_surface
*
surface
)
{
struct
wined3d_surface
*
overlay
,
*
cur
;
...
...
@@ -4941,10 +4944,7 @@ static void surface_copy_simple_location(struct wined3d_surface *surface, DWORD
static
void
surface_load_sysmem
(
struct
wined3d_surface
*
surface
,
const
struct
wined3d_gl_info
*
gl_info
,
DWORD
dst_location
)
{
static
const
DWORD
simple_locations
=
SFLAG_INDIB
|
SFLAG_INUSERMEM
|
SFLAG_INSYSMEM
;
if
(
surface
->
flags
&
simple_locations
)
if
(
surface
->
flags
&
surface_simple_locations
)
{
surface_copy_simple_location
(
surface
,
dst_location
);
return
;
...
...
@@ -5079,9 +5079,9 @@ static HRESULT surface_load_texture(struct wined3d_surface *surface,
}
}
if
(
!
(
surface
->
flags
&
SFLAG_INSYSMEM
))
if
(
!
(
surface
->
flags
&
surface_simple_locations
))
{
WARN
(
"Trying to load a texture from sysmem, but
SFLAG_INSYSMEM is not set
.
\n
"
);
WARN
(
"Trying to load a texture from sysmem, but
no simple location is valid
.
\n
"
);
/* Lets hope we get it from somewhere... */
surface_prepare_system_memory
(
surface
);
surface_load_location
(
surface
,
SFLAG_INSYSMEM
);
...
...
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