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
193cceca
Commit
193cceca
authored
May 22, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jun 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Add a dll global critical section.
parent
8f689ee0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
d3d8_main.c
dlls/d3d8/d3d8_main.c
+16
-2
d3d8_private.h
dlls/d3d8/d3d8_private.h
+3
-0
No files found.
dlls/d3d8/d3d8_main.c
View file @
193cceca
...
...
@@ -24,6 +24,15 @@
#include "d3d8_private.h"
#include "wine/debug.h"
static
CRITICAL_SECTION_DEBUG
d3d8_cs_debug
=
{
0
,
0
,
&
d3d8_cs
,
{
&
d3d8_cs_debug
.
ProcessLocksList
,
&
d3d8_cs_debug
.
ProcessLocksList
},
0
,
0
,
{
(
DWORD_PTR
)(
__FILE__
": d3d8_cs"
)
}
};
CRITICAL_SECTION
d3d8_cs
=
{
&
d3d8_cs_debug
,
-
1
,
0
,
0
,
0
,
0
};
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
HRESULT
WINAPI
D3D8GetSWInfo
(
void
)
{
...
...
@@ -36,13 +45,18 @@ void WINAPI DebugSetMute(void) {
}
IDirect3D8
*
WINAPI
Direct3DCreate8
(
UINT
SDKVersion
)
{
IDirect3D8Impl
*
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3D8Impl
));
IDirect3D8Impl
*
object
;
TRACE
(
"SDKVersion = %x
\n
"
,
SDKVersion
);
EnterCriticalSection
(
&
d3d8_cs
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3D8Impl
));
object
->
lpVtbl
=
&
Direct3D8_Vtbl
;
object
->
ref
=
1
;
object
->
WineD3D
=
WineDirect3DCreate
(
SDKVersion
,
8
,
(
IUnknown
*
)
object
);
TRACE
(
"SDKVersion = %x, Created Direct3D object @ %p, WineObj @ %p
\n
"
,
SDKVersion
,
object
,
object
->
WineD3D
);
TRACE
(
"Created Direct3D object @ %p, WineObj @ %p
\n
"
,
object
,
object
->
WineD3D
);
LeaveCriticalSection
(
&
d3d8_cs
);
return
(
IDirect3D8
*
)
object
;
}
...
...
dlls/d3d8/d3d8_private.h
View file @
193cceca
...
...
@@ -123,6 +123,9 @@ typedef struct IDirect3DVertexShaderDeclarationImpl IDirect3DVertexShaderDeclara
/* Advance declaration of structures to satisfy compiler */
typedef
struct
IDirect3DVertexShader8Impl
IDirect3DVertexShader8Impl
;
/* Global critical section */
extern
CRITICAL_SECTION
d3d8_cs
;
/* ===========================================================================
The interfactes themselves
=========================================================================== */
...
...
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