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
c4b801b7
Commit
c4b801b7
authored
Jun 10, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jun 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Add a dll global critical section.
parent
6e5a5d27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
d3d9_main.c
dlls/d3d9/d3d9_main.c
+11
-0
d3d9_private.h
dlls/d3d9/d3d9_private.h
+1
-0
No files found.
dlls/d3d9/d3d9_main.c
View file @
c4b801b7
...
...
@@ -25,6 +25,15 @@
#include "initguid.h"
#include "d3d9_private.h"
static
CRITICAL_SECTION_DEBUG
d3d9_cs_debug
=
{
0
,
0
,
&
d3d9_cs
,
{
&
d3d9_cs_debug
.
ProcessLocksList
,
&
d3d9_cs_debug
.
ProcessLocksList
},
0
,
0
,
{
(
DWORD_PTR
)(
__FILE__
": d3d9_cs"
)
}
};
CRITICAL_SECTION
d3d9_cs
=
{
&
d3d9_cs_debug
,
-
1
,
0
,
0
,
0
,
0
};
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d9
);
static
int
D3DPERF_event_level
=
0
;
...
...
@@ -43,7 +52,9 @@ IDirect3D9* WINAPI Direct3DCreate9(UINT SDKVersion) {
object
->
lpVtbl
=
&
Direct3D9_Vtbl
;
object
->
ref
=
1
;
EnterCriticalSection
(
&
d3d9_cs
);
object
->
WineD3D
=
WineDirect3DCreate
(
SDKVersion
,
9
,
(
IUnknown
*
)
object
);
LeaveCriticalSection
(
&
d3d9_cs
);
TRACE
(
"SDKVersion = %x, Created Direct3D object @ %p, WineObj @ %p
\n
"
,
SDKVersion
,
object
,
object
->
WineD3D
);
...
...
dlls/d3d9/d3d9_private.h
View file @
c4b801b7
...
...
@@ -44,6 +44,7 @@
extern
HRESULT
vdecl_convert_fvf
(
DWORD
FVF
,
D3DVERTEXELEMENT9
**
ppVertexElements
);
extern
CRITICAL_SECTION
d3d9_cs
;
/* ===========================================================================
Macros
...
...
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