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
7b19efd9
Commit
7b19efd9
authored
Aug 22, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Just call resource_unload() in updateSurfaceDesc().
Instead of trying to duplicate the functionality.
parent
b4742253
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
device.c
dlls/wined3d/device.c
+2
-10
No files found.
dlls/wined3d/device.c
View file @
7b19efd9
...
...
@@ -5455,16 +5455,8 @@ static HRESULT updateSurfaceDesc(struct wined3d_surface *surface,
while
(
surface
->
pow2Height
<
pPresentationParameters
->
BackBufferHeight
)
surface
->
pow2Height
<<=
1
;
}
if
(
surface
->
texture_name
)
{
struct
wined3d_context
*
context
=
context_acquire
(
device
,
NULL
);
ENTER_GL
();
glDeleteTextures
(
1
,
&
surface
->
texture_name
);
LEAVE_GL
();
context_release
(
context
);
surface
->
texture_name
=
0
;
surface
->
flags
&=
~
SFLAG_CLIENT
;
}
surface
->
resource
.
resource_ops
->
resource_unload
(
&
surface
->
resource
);
if
(
surface
->
pow2Width
!=
pPresentationParameters
->
BackBufferWidth
||
surface
->
pow2Height
!=
pPresentationParameters
->
BackBufferHeight
)
{
...
...
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