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
5c6c0193
Commit
5c6c0193
authored
May 18, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove maxConcurrentLights from the device.
parent
1133991e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
device.c
dlls/wined3d/device.c
+3
-4
state.c
dlls/wined3d/state.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
No files found.
dlls/wined3d/device.c
View file @
5c6c0193
...
...
@@ -1279,8 +1279,6 @@ HRESULT CDECL wined3d_device_init_3d(struct wined3d_device *device,
/* Initialize the current view state */
device
->
view_ident
=
1
;
device
->
contexts
[
0
]
->
last_was_rhw
=
0
;
glGetIntegerv
(
GL_MAX_LIGHTS
,
&
device
->
maxConcurrentLights
);
checkGLcall
(
"glGetIntegerv(GL_MAX_LIGHTS, &device->maxConcurrentLights)"
);
switch
(
wined3d_settings
.
offscreen_rendering_mode
)
{
...
...
@@ -2129,9 +2127,10 @@ HRESULT CDECL wined3d_device_set_light_enable(struct wined3d_device *device, UIN
}
else
{
int
i
;
unsigned
int
i
;
const
struct
wined3d_gl_info
*
gl_info
=
&
device
->
adapter
->
gl_info
;
/* Find a free GL light. */
for
(
i
=
0
;
i
<
device
->
maxConcurrentL
ights
;
++
i
)
for
(
i
=
0
;
i
<
gl_info
->
limits
.
l
ights
;
++
i
)
{
if
(
!
device
->
updateStateBlock
->
state
.
lights
[
i
])
{
...
...
dlls/wined3d/state.c
View file @
5c6c0193
...
...
@@ -3859,7 +3859,7 @@ static void transform_view(DWORD state, struct wined3d_stateblock *stateblock, s
checkGLcall
(
"glLoadMatrixf(...)"
);
/* Reset lights. TODO: Call light apply func */
for
(
k
=
0
;
k
<
stateblock
->
device
->
maxConcurrentL
ights
;
++
k
)
for
(
k
=
0
;
k
<
gl_info
->
limits
.
l
ights
;
++
k
)
{
light
=
stateblock
->
state
.
lights
[
k
];
if
(
!
light
)
continue
;
...
...
dlls/wined3d/wined3d_private.h
View file @
5c6c0193
...
...
@@ -1654,7 +1654,6 @@ struct wined3d_device
LONG
exStyle
;
/* X and GL Information */
GLint
maxConcurrentLights
;
GLenum
offscreenBuffer
;
/* Selected capabilities */
...
...
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