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
12799db3
Commit
12799db3
authored
May 24, 2009
by
Chris Robinson
Committed by
Alexandre Julliard
May 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Decrement fbo_entry_count when one is removed from the list.
parent
1d757fd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
context.c
dlls/wined3d/context.c
+7
-5
No files found.
dlls/wined3d/context.c
View file @
12799db3
...
...
@@ -259,13 +259,14 @@ static void context_reuse_fbo_entry(IWineD3DDevice *iface, struct fbo_entry *ent
}
/* GL locking is done by the caller */
static
void
context_destroy_fbo_entry
(
IWineD3DDeviceImpl
*
This
,
struct
fbo_entry
*
entry
)
static
void
context_destroy_fbo_entry
(
IWineD3DDeviceImpl
*
This
,
WineD3DContext
*
context
,
struct
fbo_entry
*
entry
)
{
if
(
entry
->
id
)
{
TRACE
(
"Destroy FBO %d
\n
"
,
entry
->
id
);
context_destroy_fbo
(
This
,
&
entry
->
id
);
}
--
context
->
fbo_entry_count
;
list_remove
(
&
entry
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
entry
->
render_targets
);
HeapFree
(
GetProcessHeap
(),
0
,
entry
);
...
...
@@ -381,11 +382,12 @@ void context_resource_released(IWineD3DDevice *iface, IWineD3DResource *resource
{
for
(
i
=
0
;
i
<
This
->
numContexts
;
++
i
)
{
WineD3DContext
*
context
=
This
->
contexts
[
i
];
struct
fbo_entry
*
entry
,
*
entry2
;
ENTER_GL
();
LIST_FOR_EACH_ENTRY_SAFE
(
entry
,
entry2
,
&
This
->
contexts
[
i
]
->
fbo_list
,
struct
fbo_entry
,
entry
)
LIST_FOR_EACH_ENTRY_SAFE
(
entry
,
entry2
,
&
context
->
fbo_list
,
struct
fbo_entry
,
entry
)
{
BOOL
destroyed
=
FALSE
;
UINT
j
;
...
...
@@ -394,13 +396,13 @@ void context_resource_released(IWineD3DDevice *iface, IWineD3DResource *resource
{
if
(
entry
->
render_targets
[
j
]
==
(
IWineD3DSurface
*
)
resource
)
{
context_destroy_fbo_entry
(
This
,
entry
);
context_destroy_fbo_entry
(
This
,
context
,
entry
);
destroyed
=
TRUE
;
}
}
if
(
!
destroyed
&&
entry
->
depth_stencil
==
(
IWineD3DSurface
*
)
resource
)
context_destroy_fbo_entry
(
This
,
entry
);
context_destroy_fbo_entry
(
This
,
context
,
entry
);
}
LEAVE_GL
();
...
...
@@ -1053,7 +1055,7 @@ void DestroyContext(IWineD3DDeviceImpl *This, WineD3DContext *context) {
ENTER_GL
();
LIST_FOR_EACH_ENTRY_SAFE
(
entry
,
entry2
,
&
context
->
fbo_list
,
struct
fbo_entry
,
entry
)
{
context_destroy_fbo_entry
(
This
,
entry
);
context_destroy_fbo_entry
(
This
,
context
,
entry
);
}
if
(
context
->
src_fbo
)
{
TRACE
(
"Destroy src FBO %d
\n
"
,
context
->
src_fbo
);
...
...
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