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
c71eba90
Commit
c71eba90
authored
May 16, 2003
by
Jason Edmeades
Committed by
Alexandre Julliard
May 16, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed range checking on the number of lights.
Silence the fixmes.
parent
2c4fd428
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
device.c
dlls/d3d8/device.c
+8
-8
No files found.
dlls/d3d8/device.c
View file @
c71eba90
...
...
@@ -2554,8 +2554,8 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetLight(LPDIRECT3DDEVICE8 iface, DWORD In
ICOM_THIS
(
IDirect3DDevice8Impl
,
iface
);
TRACE
(
"(%p) : Idx(%ld), pLight(%p)
\n
"
,
This
,
Index
,
pLight
);
if
(
Index
>
This
->
maxLights
)
{
FIXM
E
(
"Cannot handle more lights than device supports
\n
"
);
if
(
Index
>
=
This
->
maxLights
)
{
TRAC
E
(
"Cannot handle more lights than device supports
\n
"
);
return
D3DERR_INVALIDCALL
;
}
...
...
@@ -2695,8 +2695,8 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetLight(LPDIRECT3DDEVICE8 iface, DWORD In
ICOM_THIS
(
IDirect3DDevice8Impl
,
iface
);
TRACE
(
"(%p) : Idx(%ld), pLight(%p)
\n
"
,
This
,
Index
,
pLight
);
if
(
Index
>
This
->
maxLights
)
{
FIXM
E
(
"Cannot handle more lights than device supports
\n
"
);
if
(
Index
>
=
This
->
maxLights
)
{
TRAC
E
(
"Cannot handle more lights than device supports
\n
"
);
return
D3DERR_INVALIDCALL
;
}
...
...
@@ -2707,8 +2707,8 @@ HRESULT WINAPI IDirect3DDevice8Impl_LightEnable(LPDIRECT3DDEVICE8 iface, DWORD
ICOM_THIS
(
IDirect3DDevice8Impl
,
iface
);
TRACE
(
"(%p) : Idx(%ld), enable? %d
\n
"
,
This
,
Index
,
Enable
);
if
(
Index
>
This
->
maxLights
)
{
FIXM
E
(
"Cannot handle more lights than device supports
\n
"
);
if
(
Index
>
=
This
->
maxLights
)
{
TRAC
E
(
"Cannot handle more lights than device supports
\n
"
);
return
D3DERR_INVALIDCALL
;
}
...
...
@@ -2735,8 +2735,8 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetLightEnable(LPDIRECT3DDEVICE8 iface, DW
ICOM_THIS
(
IDirect3DDevice8Impl
,
iface
);
TRACE
(
"(%p) : for idx(%ld)
\n
"
,
This
,
Index
);
if
(
Index
>
This
->
maxLights
)
{
FIXM
E
(
"Cannot handle more lights than device supports
\n
"
);
if
(
Index
>
=
This
->
maxLights
)
{
TRAC
E
(
"Cannot handle more lights than device supports
\n
"
);
return
D3DERR_INVALIDCALL
;
}
...
...
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