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
ed7e5209
Commit
ed7e5209
authored
Nov 09, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of a few Nvidiaisms in glsl shaders.
parent
edb78187
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
glsl_shader.c
dlls/wined3d/glsl_shader.c
+3
-3
No files found.
dlls/wined3d/glsl_shader.c
View file @
ed7e5209
...
...
@@ -533,9 +533,9 @@ void shader_generate_glsl_declarations(
extra_constants_needed
++
;
}
else
{
ps_impl
->
srgb_mode_hardcoded
=
1
;
shader_addline
(
buffer
,
"const vec4 srgb_mul_low =
{%f, %f, %f, %f}
;
\n
"
,
shader_addline
(
buffer
,
"const vec4 srgb_mul_low =
vec4(%f, %f, %f, %f)
;
\n
"
,
srgb_mul_low
,
srgb_mul_low
,
srgb_mul_low
,
srgb_mul_low
);
shader_addline
(
buffer
,
"const vec4 srgb_comparison =
{%f, %f, %f, %f}
;
\n
"
,
shader_addline
(
buffer
,
"const vec4 srgb_comparison =
vec4(%f, %f, %f, %f)
;
\n
"
,
srgb_cmp
,
srgb_cmp
,
srgb_cmp
,
srgb_cmp
);
}
}
else
{
...
...
@@ -557,7 +557,7 @@ void shader_generate_glsl_declarations(
* actually used, only the max limit of the shader version
*/
FIXME
(
"Cannot find a free uniform for vpos correction params
\n
"
);
shader_addline
(
buffer
,
"const vec4 ycorrection =
{%f, %f, 0.0, 0.0}
;
\n
"
,
shader_addline
(
buffer
,
"const vec4 ycorrection =
vec4(%f, %f, 0.0, 0.0)
;
\n
"
,
device
->
render_offscreen
?
0
.
0
:
((
IWineD3DSurfaceImpl
*
)
device
->
render_targets
[
0
])
->
currentDesc
.
Height
,
device
->
render_offscreen
?
1
.
0
:
-
1
.
0
);
}
...
...
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