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
b62915da
Commit
b62915da
authored
Sep 10, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Replace surface_modify_location(surface, location, FALSE) calls with…
wined3d: Replace surface_modify_location(surface, location, FALSE) calls with surface_invalidate_location().
parent
c6ce5486
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
context.c
dlls/wined3d/context.c
+1
-1
surface.c
dlls/wined3d/surface.c
+6
-8
swapchain.c
dlls/wined3d/swapchain.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/context.c
View file @
b62915da
...
...
@@ -2453,7 +2453,7 @@ static void context_setup_target(struct wined3d_context *context, struct wined3d
if
(
context
->
current_rt
->
texture_name_srgb
)
surface_internal_preload
(
context
->
current_rt
,
SRGB_SRGB
);
surface_internal_preload
(
context
->
current_rt
,
SRGB_RGB
);
surface_
modify_location
(
context
->
current_rt
,
SFLAG_INDRAWABLE
,
FALS
E
);
surface_
invalidate_location
(
context
->
current_rt
,
SFLAG_INDRAWABL
E
);
}
}
...
...
dlls/wined3d/surface.c
View file @
b62915da
...
...
@@ -605,7 +605,7 @@ static void surface_evict_sysmem(struct wined3d_surface *surface)
wined3d_resource_free_sysmem
(
surface
->
resource
.
heap_memory
);
surface
->
resource
.
allocatedMemory
=
NULL
;
surface
->
resource
.
heap_memory
=
NULL
;
surface_
modify_location
(
surface
,
SFLAG_INSYSMEM
,
FALSE
);
surface_
invalidate_location
(
surface
,
SFLAG_INSYSMEM
);
}
/* Context activation is done by the caller. */
...
...
@@ -703,8 +703,7 @@ static void surface_release_client_storage(struct wined3d_surface *surface)
context_release
(
context
);
surface_modify_location
(
surface
,
SFLAG_INSRGBTEX
,
FALSE
);
surface_modify_location
(
surface
,
SFLAG_INTEXTURE
,
FALSE
);
surface_invalidate_location
(
surface
,
SFLAG_INTEXTURE
|
SFLAG_INSRGBTEX
);
surface_force_reload
(
surface
);
}
...
...
@@ -818,7 +817,7 @@ static void surface_realize_palette(struct wined3d_surface *surface)
/* We want to force a palette refresh, so mark the drawable as not being up to date */
if
(
!
surface_is_offscreen
(
surface
))
surface_
modify_location
(
surface
,
SFLAG_INDRAWABLE
,
FALS
E
);
surface_
invalidate_location
(
surface
,
SFLAG_INDRAWABL
E
);
}
else
{
...
...
@@ -1528,10 +1527,9 @@ static void surface_unload(struct wined3d_resource *resource)
{
/* Load the surface into system memory */
surface_load_location
(
surface
,
SFLAG_INSYSMEM
,
NULL
);
surface_
modify_location
(
surface
,
surface
->
draw_binding
,
FALSE
);
surface_
invalidate_location
(
surface
,
surface
->
draw_binding
);
}
surface_modify_location
(
surface
,
SFLAG_INTEXTURE
,
FALSE
);
surface_modify_location
(
surface
,
SFLAG_INSRGBTEX
,
FALSE
);
surface_invalidate_location
(
surface
,
SFLAG_INTEXTURE
|
SFLAG_INSRGBTEX
);
surface
->
flags
&=
~
(
SFLAG_ALLOCATED
|
SFLAG_SRGBALLOCATED
);
context
=
context_acquire
(
device
,
NULL
);
...
...
@@ -5347,7 +5345,7 @@ static void surface_validate_location(struct wined3d_surface *surface, DWORD loc
}
}
static
void
surface_invalidate_location
(
struct
wined3d_surface
*
surface
,
DWORD
location
)
void
surface_invalidate_location
(
struct
wined3d_surface
*
surface
,
DWORD
location
)
{
TRACE
(
"surface %p, location %s.
\n
"
,
surface
,
debug_surflocation
(
location
&
SFLAG_LOCATIONS
));
...
...
dlls/wined3d/swapchain.c
View file @
b62915da
...
...
@@ -521,7 +521,7 @@ static void swapchain_gl_present(struct wined3d_swapchain *swapchain, const RECT
if
(
!
swapchain
->
render_to_fbo
&&
render_to_fbo
&&
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
surface_load_location
(
back_buffer
,
SFLAG_INTEXTURE
,
NULL
);
surface_
modify_location
(
back_buffer
,
SFLAG_INDRAWABLE
,
FALS
E
);
surface_
invalidate_location
(
back_buffer
,
SFLAG_INDRAWABL
E
);
swapchain
->
render_to_fbo
=
TRUE
;
swapchain_update_draw_bindings
(
swapchain
);
}
...
...
dlls/wined3d/wined3d_private.h
View file @
b62915da
...
...
@@ -2253,6 +2253,7 @@ HRESULT surface_color_fill(struct wined3d_surface *s,
const
RECT
*
rect
,
const
struct
wined3d_color
*
color
)
DECLSPEC_HIDDEN
;
GLenum
surface_get_gl_buffer
(
const
struct
wined3d_surface
*
surface
)
DECLSPEC_HIDDEN
;
void
surface_internal_preload
(
struct
wined3d_surface
*
surface
,
enum
WINED3DSRGB
srgb
)
DECLSPEC_HIDDEN
;
void
surface_invalidate_location
(
struct
wined3d_surface
*
surface
,
DWORD
location
)
DECLSPEC_HIDDEN
;
BOOL
surface_is_offscreen
(
const
struct
wined3d_surface
*
surface
)
DECLSPEC_HIDDEN
;
HRESULT
surface_load
(
struct
wined3d_surface
*
surface
,
BOOL
srgb
)
DECLSPEC_HIDDEN
;
void
surface_load_ds_location
(
struct
wined3d_surface
*
surface
,
...
...
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