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
3aaa530c
Commit
3aaa530c
authored
Jun 17, 2009
by
Stefan Doesinger
Committed by
Alexandre Julliard
Jun 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Properly load the y correction.
parent
7d5285ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+16
-16
No files found.
dlls/wined3d/arb_program_shader.c
View file @
3aaa530c
...
@@ -334,6 +334,22 @@ static inline void shader_arb_ps_local_constants(IWineD3DDeviceImpl* deviceImpl)
...
@@ -334,6 +334,22 @@ static inline void shader_arb_ps_local_constants(IWineD3DDeviceImpl* deviceImpl)
}
}
checkGLcall
(
"Load bumpmap consts
\n
"
);
checkGLcall
(
"Load bumpmap consts
\n
"
);
if
(
gl_shader
->
ycorrection
!=
WINED3D_CONST_NUM_UNUSED
)
{
/* ycorrection.x: Backbuffer height(onscreen) or 0(offscreen).
* ycorrection.y: -1.0(onscreen), 1.0(offscreen)
* ycorrection.z: 1.0
* ycorrection.w: 0.0
*/
float
val
[
4
];
val
[
0
]
=
deviceImpl
->
render_offscreen
?
0
.
0
:
((
IWineD3DSurfaceImpl
*
)
deviceImpl
->
render_targets
[
0
])
->
currentDesc
.
Height
;
val
[
1
]
=
deviceImpl
->
render_offscreen
?
1
.
0
:
-
1
.
0
;
val
[
2
]
=
1
.
0
;
val
[
3
]
=
0
.
0
;
GL_EXTCALL
(
glProgramLocalParameter4fvARB
(
GL_FRAGMENT_PROGRAM_ARB
,
gl_shader
->
ycorrection
,
val
));
checkGLcall
(
"y correction loading
\n
"
);
}
if
(
gl_shader
->
num_int_consts
==
0
)
return
;
if
(
gl_shader
->
num_int_consts
==
0
)
return
;
for
(
i
=
0
;
i
<
MAX_CONST_I
;
i
++
)
for
(
i
=
0
;
i
<
MAX_CONST_I
;
i
++
)
...
@@ -350,22 +366,6 @@ static inline void shader_arb_ps_local_constants(IWineD3DDeviceImpl* deviceImpl)
...
@@ -350,22 +366,6 @@ static inline void shader_arb_ps_local_constants(IWineD3DDeviceImpl* deviceImpl)
}
}
}
}
checkGLcall
(
"Load ps int consts
\n
"
);
checkGLcall
(
"Load ps int consts
\n
"
);
if
(
gl_shader
->
ycorrection
!=
WINED3D_CONST_NUM_UNUSED
)
{
/* ycorrection.x: Backbuffer height(onscreen) or 0(offscreen).
* ycorrection.y: -1.0(onscreen), 1.0(offscreen)
* ycorrection.z: 1.0
* ycorrection.w: 0.0
*/
float
val
[
4
];
val
[
0
]
=
deviceImpl
->
render_offscreen
?
0
.
0
:
((
IWineD3DSurfaceImpl
*
)
deviceImpl
->
render_targets
[
0
])
->
currentDesc
.
Height
;
val
[
1
]
=
deviceImpl
->
render_offscreen
?
1
.
0
:
-
1
.
0
;
val
[
2
]
=
1
.
0
;
val
[
3
]
=
0
.
0
;
GL_EXTCALL
(
glProgramLocalParameter4fvARB
(
GL_FRAGMENT_PROGRAM_ARB
,
gl_shader
->
ycorrection
,
val
));
checkGLcall
(
"y correction loading
\n
"
);
}
}
}
static
inline
void
shader_arb_vs_local_constants
(
IWineD3DDeviceImpl
*
deviceImpl
)
static
inline
void
shader_arb_vs_local_constants
(
IWineD3DDeviceImpl
*
deviceImpl
)
...
...
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