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
2ef75188
Commit
2ef75188
authored
May 11, 2009
by
Rico Schüller
Committed by
Alexandre Julliard
May 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add UnregisterClass() on DLL_PROCESS_DETACH.
parent
d6c8a003
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
directx.c
dlls/wined3d/directx.c
+1
-1
wined3d_main.c
dlls/wined3d/wined3d_main.c
+5
-4
wined3d_private.h
dlls/wined3d/wined3d_private.h
+4
-0
No files found.
dlls/wined3d/directx.c
View file @
2ef75188
...
...
@@ -268,7 +268,7 @@ static BOOL WineD3D_CreateFakeGLContext(void) {
wined3d_fake_gl_context_foreign
=
FALSE
;
/* We need a fake window as a hdc retrieved using GetDC(0) can't be used for much GL purposes */
wined3d_fake_gl_context_hwnd
=
CreateWindowA
(
"WineD3D_OpenGL"
,
"WineD3D fake window"
,
WS_OVERLAPPEDWINDOW
,
10
,
10
,
10
,
10
,
NULL
,
NULL
,
NULL
,
NULL
);
wined3d_fake_gl_context_hwnd
=
CreateWindowA
(
WINED3D_OPENGL_WINDOW_CLASS_NAME
,
"WineD3D fake window"
,
WS_OVERLAPPEDWINDOW
,
10
,
10
,
10
,
10
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
!
wined3d_fake_gl_context_hwnd
)
{
ERR
(
"HWND creation failed!
\n
"
);
goto
fail
;
...
...
dlls/wined3d/wined3d_main.c
View file @
2ef75188
...
...
@@ -117,9 +117,9 @@ static BOOL wined3d_init(HINSTANCE hInstDLL)
wc
.
hCursor
=
LoadCursorA
(
NULL
,
(
LPCSTR
)
IDC_ARROW
);
wc
.
hbrBackground
=
NULL
;
wc
.
lpszMenuName
=
NULL
;
wc
.
lpszClassName
=
"WineD3D_OpenGL"
;
wc
.
lpszClassName
=
WINED3D_OPENGL_WINDOW_CLASS_NAME
;
if
(
!
RegisterClassA
(
&
wc
)
&&
GetLastError
()
!=
ERROR_CLASS_ALREADY_EXISTS
)
if
(
!
RegisterClassA
(
&
wc
))
{
ERR
(
"Failed to register window class 'WineD3D_OpenGL'!
\n
"
);
return
FALSE
;
...
...
@@ -320,9 +320,10 @@ static BOOL wined3d_init(HINSTANCE hInstDLL)
return
TRUE
;
}
static
BOOL
wined3d_destroy
(
void
)
static
BOOL
wined3d_destroy
(
HINSTANCE
hInstDLL
)
{
HeapFree
(
GetProcessHeap
(),
0
,
wined3d_settings
.
logo
);
UnregisterClassA
(
WINED3D_OPENGL_WINDOW_CLASS_NAME
,
hInstDLL
);
return
TRUE
;
}
...
...
@@ -338,7 +339,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
return
wined3d_init
(
hInstDLL
);
case
DLL_PROCESS_DETACH
:
return
wined3d_destroy
();
return
wined3d_destroy
(
hInstDLL
);
default:
return
TRUE
;
...
...
dlls/wined3d/wined3d_private.h
View file @
2ef75188
...
...
@@ -2818,4 +2818,8 @@ static inline BOOL use_ps(IWineD3DStateBlockImpl *stateblock)
void
stretch_rect_fbo
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
src_surface
,
WINED3DRECT
*
src_rect
,
IWineD3DSurface
*
dst_surface
,
WINED3DRECT
*
dst_rect
,
const
WINED3DTEXTUREFILTERTYPE
filter
,
BOOL
flip
);
/* The WNDCLASS-Name for the fake window which we use to retrieve the GL capabilities */
#define WINED3D_OPENGL_WINDOW_CLASS_NAME "WineD3D_OpenGL"
#endif
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