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
8fff427b
Commit
8fff427b
authored
Apr 11, 2015
by
Joachim Priesner
Committed by
Alexandre Julliard
Apr 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Load ModelView matrix for glLightfv calls.
Analogous to the light() function in state.c, the correct ModelView matrix has to be loaded when glLightfv is called.
parent
20aee067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
glsl_shader.c
dlls/wined3d/glsl_shader.c
+7
-0
No files found.
dlls/wined3d/glsl_shader.c
View file @
8fff427b
...
...
@@ -7208,6 +7208,11 @@ void glsl_vertex_pipe_view(struct wined3d_context *context, const struct wined3d
context
->
constant_update_mask
|=
WINED3D_SHADER_CONST_FFP_MODELVIEW
;
/* Light settings are affected by the ModelView transform in OpenGL, the View transform in Direct3D. */
gl_info
->
gl_ops
.
gl
.
p_glMatrixMode
(
GL_MODELVIEW
);
gl_info
->
gl_ops
.
gl
.
p_glPushMatrix
();
gl_info
->
gl_ops
.
gl
.
p_glLoadMatrixf
(
&
state
->
transforms
[
WINED3D_TS_VIEW
].
_11
);
for
(
k
=
0
;
k
<
gl_info
->
limits
.
lights
;
++
k
)
{
if
(
!
(
light
=
state
->
lights
[
k
]))
...
...
@@ -7218,6 +7223,8 @@ void glsl_vertex_pipe_view(struct wined3d_context *context, const struct wined3d
checkGLcall
(
"glLightfv dirn"
);
}
gl_info
->
gl_ops
.
gl
.
p_glPopMatrix
();
for
(
k
=
0
;
k
<
gl_info
->
limits
.
clipplanes
;
++
k
)
{
if
(
!
isStateDirty
(
context
,
STATE_CLIPPLANE
(
k
)))
...
...
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