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
6eb8e3fb
Commit
6eb8e3fb
authored
May 30, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jun 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Hold the lock in IDirect3DLight methods.
parent
a2227de7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
light.c
dlls/ddraw/light.c
+6
-0
No files found.
dlls/ddraw/light.c
View file @
6eb8e3fb
...
...
@@ -201,10 +201,12 @@ IDirect3DLightImpl_SetLight(IDirect3DLight *iface,
light7
->
dvTheta
=
lpLight
->
dvTheta
;
light7
->
dvPhi
=
lpLight
->
dvPhi
;
EnterCriticalSection
(
&
ddraw_cs
);
memcpy
(
&
This
->
light
,
lpLight
,
lpLight
->
dwSize
);
if
((
This
->
light
.
dwFlags
&
D3DLIGHT_ACTIVE
)
!=
0
)
{
This
->
update
(
This
);
}
LeaveCriticalSection
(
&
ddraw_cs
);
return
D3D_OK
;
}
...
...
@@ -230,7 +232,11 @@ IDirect3DLightImpl_GetLight(IDirect3DLight *iface,
TRACE
(
" Returning light definition :
\n
"
);
dump_light
(
&
This
->
light
);
}
EnterCriticalSection
(
&
ddraw_cs
);
memcpy
(
lpLight
,
&
This
->
light
,
lpLight
->
dwSize
);
LeaveCriticalSection
(
&
ddraw_cs
);
return
DD_OK
;
}
...
...
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