Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c5fbf98e
Commit
c5fbf98e
authored
Oct 03, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Enable lights on the correct swapchain.
parent
e6c3a2be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
device.c
dlls/wined3d/device.c
+3
-3
No files found.
dlls/wined3d/device.c
View file @
c5fbf98e
...
@@ -2996,7 +2996,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetLightEnable(IWineD3DDevice *iface, D
...
@@ -2996,7 +2996,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetLightEnable(IWineD3DDevice *iface, D
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_ACTIVELIGHT
(
lightInfo
->
glIndex
));
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_ACTIVELIGHT
(
lightInfo
->
glIndex
));
}
}
This
->
s
tateBlock
->
activeLights
[
lightInfo
->
glIndex
]
=
NULL
;
This
->
updateS
tateBlock
->
activeLights
[
lightInfo
->
glIndex
]
=
NULL
;
lightInfo
->
glIndex
=
-
1
;
lightInfo
->
glIndex
=
-
1
;
}
else
{
}
else
{
TRACE
(
"Light already disabled, nothing to do
\n
"
);
TRACE
(
"Light already disabled, nothing to do
\n
"
);
...
@@ -3011,8 +3011,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetLightEnable(IWineD3DDevice *iface, D
...
@@ -3011,8 +3011,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetLightEnable(IWineD3DDevice *iface, D
int
i
;
int
i
;
/* Find a free gl light */
/* Find a free gl light */
for
(
i
=
0
;
i
<
This
->
maxConcurrentLights
;
i
++
)
{
for
(
i
=
0
;
i
<
This
->
maxConcurrentLights
;
i
++
)
{
if
(
This
->
s
tateBlock
->
activeLights
[
i
]
==
NULL
)
{
if
(
This
->
updateS
tateBlock
->
activeLights
[
i
]
==
NULL
)
{
This
->
s
tateBlock
->
activeLights
[
i
]
=
lightInfo
;
This
->
updateS
tateBlock
->
activeLights
[
i
]
=
lightInfo
;
lightInfo
->
glIndex
=
i
;
lightInfo
->
glIndex
=
i
;
break
;
break
;
}
}
...
...
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