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
23ce9d72
Commit
23ce9d72
authored
Jul 03, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of wined3d_fake_gl_context_cs.
parent
4cacf2e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
directx.c
dlls/wined3d/directx.c
+0
-18
No files found.
dlls/wined3d/directx.c
View file @
23ce9d72
...
...
@@ -204,20 +204,8 @@ struct wined3d_fake_gl_ctx
HGLRC
gl_ctx
;
};
static
CRITICAL_SECTION
wined3d_fake_gl_context_cs
;
static
CRITICAL_SECTION_DEBUG
wined3d_fake_gl_context_cs_debug
=
{
0
,
0
,
&
wined3d_fake_gl_context_cs
,
{
&
wined3d_fake_gl_context_cs_debug
.
ProcessLocksList
,
&
wined3d_fake_gl_context_cs_debug
.
ProcessLocksList
},
0
,
0
,
{
(
DWORD_PTR
)(
__FILE__
": wined3d_fake_gl_context_cs"
)
}
};
static
CRITICAL_SECTION
wined3d_fake_gl_context_cs
=
{
&
wined3d_fake_gl_context_cs_debug
,
-
1
,
0
,
0
,
0
,
0
};
static
void
WineD3D_ReleaseFakeGLContext
(
struct
wined3d_fake_gl_ctx
*
ctx
)
{
EnterCriticalSection
(
&
wined3d_fake_gl_context_cs
);
TRACE_
(
d3d_caps
)(
"Destroying fake GL context.
\n
"
);
if
(
!
pwglMakeCurrent
(
NULL
,
NULL
))
...
...
@@ -228,8 +216,6 @@ static void WineD3D_ReleaseFakeGLContext(struct wined3d_fake_gl_ctx *ctx)
pwglDeleteContext
(
ctx
->
gl_ctx
);
ReleaseDC
(
ctx
->
wnd
,
ctx
->
dc
);
DestroyWindow
(
ctx
->
wnd
);
LeaveCriticalSection
(
&
wined3d_fake_gl_context_cs
);
}
static
BOOL
WineD3D_CreateFakeGLContext
(
struct
wined3d_fake_gl_ctx
*
ctx
)
...
...
@@ -237,8 +223,6 @@ static BOOL WineD3D_CreateFakeGLContext(struct wined3d_fake_gl_ctx *ctx)
PIXELFORMATDESCRIPTOR
pfd
;
int
iPixelFormat
;
EnterCriticalSection
(
&
wined3d_fake_gl_context_cs
);
TRACE
(
"getting context...
\n
"
);
/* We need a fake window as a hdc retrieved using GetDC(0) can't be used for much GL purposes. */
...
...
@@ -292,7 +276,6 @@ static BOOL WineD3D_CreateFakeGLContext(struct wined3d_fake_gl_ctx *ctx)
}
context_set_last_device
(
NULL
);
LeaveCriticalSection
(
&
wined3d_fake_gl_context_cs
);
return
TRUE
;
fail:
...
...
@@ -303,7 +286,6 @@ fail:
if
(
ctx
->
wnd
)
DestroyWindow
(
ctx
->
wnd
);
ctx
->
wnd
=
NULL
;
LeaveCriticalSection
(
&
wined3d_fake_gl_context_cs
);
return
FALSE
;
}
...
...
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