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
57292f94
Commit
57292f94
authored
Nov 19, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Surfaces always have a container in surface_internal_preload().
parent
aa48321c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
21 deletions
+3
-21
surface.c
dlls/wined3d/surface.c
+3
-21
No files found.
dlls/wined3d/surface.c
View file @
57292f94
...
...
@@ -3635,29 +3635,11 @@ HRESULT CDECL wined3d_surface_flip(struct wined3d_surface *surface, struct wined
void
surface_internal_preload
(
struct
wined3d_surface
*
surface
,
struct
wined3d_context
*
context
,
enum
WINED3DSRGB
srgb
)
{
TRACE
(
"iface %p, srgb %#x.
\n
"
,
surface
,
srgb
);
if
(
surface
->
container
)
{
struct
wined3d_texture
*
texture
=
surface
->
container
;
TRACE
(
"Passing to container (%p).
\n
"
,
texture
);
texture
->
texture_ops
->
texture_preload
(
texture
,
context
,
srgb
);
}
else
{
TRACE
(
"(%p) : About to load surface
\n
"
,
surface
);
struct
wined3d_texture
*
texture
=
surface
->
container
;
surface_load
(
surface
,
srgb
==
SRGB_SRGB
);
TRACE
(
"iface %p, srgb %#x.
\n
"
,
surface
,
srgb
);
if
(
surface
->
resource
.
pool
==
WINED3D_POOL_DEFAULT
)
{
/* Tell opengl to try and keep this texture in video ram (well mostly) */
GLclampf
tmp
;
tmp
=
0
.
9
f
;
context
->
gl_info
->
gl_ops
.
gl
.
p_glPrioritizeTextures
(
1
,
&
surface
->
texture_name
,
&
tmp
);
}
}
texture
->
texture_ops
->
texture_preload
(
texture
,
context
,
srgb
);
}
/* Read the framebuffer back into the 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