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
45a0e959
Commit
45a0e959
authored
Jun 16, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Only load the surface for partial updates in wined3d_device_update_surface().
parent
3a1d1515
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
device.c
dlls/wined3d/device.c
+7
-2
No files found.
dlls/wined3d/device.c
View file @
45a0e959
...
...
@@ -4833,8 +4833,13 @@ HRESULT CDECL wined3d_device_update_surface(struct wined3d_device *device,
checkGLcall
(
"glActiveTextureARB"
);
LEAVE_GL
();
/* Make sure the surface is loaded and up to date */
surface_load_location
(
dst_surface
,
SFLAG_INTEXTURE
,
NULL
);
/* Only load the surface for partial updates. For newly allocated texture
* the texture wouldn't be the current location, and we'd upload zeroes
* just to overwrite them again. */
if
(
update_w
==
dst_w
&&
update_h
==
dst_h
)
surface_prepare_texture
(
dst_surface
,
gl_info
,
FALSE
);
else
surface_load_location
(
dst_surface
,
SFLAG_INTEXTURE
,
NULL
);
surface_bind
(
dst_surface
,
gl_info
,
FALSE
);
data
.
buffer_object
=
0
;
...
...
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