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
82c1d013
Commit
82c1d013
authored
Nov 25, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Just validate the sysmem location in surface_init().
This is all surface_set_dirty() really does here.
parent
c2d07d5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
surface.c
dlls/wined3d/surface.c
+3
-5
No files found.
dlls/wined3d/surface.c
View file @
82c1d013
...
...
@@ -6519,10 +6519,12 @@ static HRESULT surface_init(struct wined3d_surface *surface, struct wined3d_text
}
surface_set_container
(
surface
,
container
);
surface_validate_location
(
surface
,
SFLAG_INSYSMEM
);
list_init
(
&
surface
->
renderbuffers
);
list_init
(
&
surface
->
overlays
);
/* Flags */
surface
->
flags
=
SFLAG_NORMCOORD
;
/* Default to normalized coords. */
surface
->
flags
|
=
SFLAG_NORMCOORD
;
/* Default to normalized coords. */
if
(
flags
&
WINED3D_SURFACE_DISCARD
)
surface
->
flags
|=
SFLAG_DISCARD
;
if
(
flags
&
WINED3D_SURFACE_PIN_SYSMEM
)
...
...
@@ -6540,10 +6542,6 @@ static HRESULT surface_init(struct wined3d_surface *surface, struct wined3d_text
if
(
lockable
&&
(
desc
->
usage
&
WINED3DUSAGE_RENDERTARGET
))
surface
->
flags
|=
SFLAG_DYNLOCK
;
/* Mark the texture as dirty so that it gets loaded first time around. */
surface_set_dirty
(
surface
);
list_init
(
&
surface
->
renderbuffers
);
TRACE
(
"surface %p, memory %p, size %u
\n
"
,
surface
,
surface
->
resource
.
allocatedMemory
,
surface
->
resource
.
size
);
...
...
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