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
e3507a72
Commit
e3507a72
authored
Aug 24, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: glDeleteFramebuffersEXT() needs a context.
parent
ded5b05e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
context.c
dlls/wined3d/context.c
+10
-5
No files found.
dlls/wined3d/context.c
View file @
e3507a72
...
...
@@ -644,15 +644,16 @@ static void RemoveContextFromArray(IWineD3DDeviceImpl *This, WineD3DContext *con
*****************************************************************************/
void
DestroyContext
(
IWineD3DDeviceImpl
*
This
,
WineD3DContext
*
context
)
{
/* check that we are the current context first */
TRACE
(
"Destroying ctx %p
\n
"
,
context
);
if
(
pwglGetCurrentContext
()
==
context
->
glCtx
){
pwglMakeCurrent
(
NULL
,
NULL
);
}
else
{
/* The correct GL context needs to be active to cleanup the GL resources below */
if
(
pwglGetCurrentContext
()
!=
context
->
glCtx
){
pwglMakeCurrent
(
context
->
hdc
,
context
->
glCtx
);
last_device
=
NULL
;
}
/* FIXME: We probably need an active context to do this... */
ENTER_GL
();
if
(
context
->
fbo
)
{
GL_EXTCALL
(
glDeleteFramebuffersEXT
(
1
,
&
context
->
fbo
));
}
...
...
@@ -663,9 +664,13 @@ void DestroyContext(IWineD3DDeviceImpl *This, WineD3DContext *context) {
GL_EXTCALL
(
glDeleteFramebuffersEXT
(
1
,
&
context
->
dst_fbo
));
}
LEAVE_GL
();
HeapFree
(
GetProcessHeap
(),
0
,
context
->
fbo_color_attachments
);
context
->
fbo_color_attachments
=
NULL
;
/* Cleanup the GL context */
pwglMakeCurrent
(
NULL
,
NULL
);
if
(
context
->
isPBuffer
)
{
GL_EXTCALL
(
wglReleasePbufferDCARB
(
context
->
pbuffer
,
context
->
hdc
));
GL_EXTCALL
(
wglDestroyPbufferARB
(
context
->
pbuffer
));
...
...
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