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
fa3a72c6
Commit
fa3a72c6
authored
Sep 02, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add a handler for WINED3DRS_SRGBWRITEENABLE to the atifs fragment pipe.
parent
e998fffc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
ati_fragment_shader.c
dlls/wined3d/ati_fragment_shader.c
+7
-0
No files found.
dlls/wined3d/ati_fragment_shader.c
View file @
fa3a72c6
...
...
@@ -912,6 +912,12 @@ static void atifs_apply_pixelshader(DWORD state, IWineD3DStateBlockImpl *statebl
}
}
static
void
atifs_srgbwriteenable
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
struct
wined3d_context
*
context
)
{
if
(
stateblock
->
renderState
[
WINED3DRS_SRGBWRITEENABLE
])
WARN
(
"sRGB writes are not supported by this fragment pipe.
\n
"
);
}
static
const
struct
StateEntryTemplate
atifs_fragmentstate_template
[]
=
{
{
STATE_RENDER
(
WINED3DRS_TEXTUREFACTOR
),
{
STATE_RENDER
(
WINED3DRS_TEXTUREFACTOR
),
state_texfactor_atifs
},
WINED3D_GL_EXT_NONE
},
{
STATE_RENDER
(
WINED3DRS_FOGCOLOR
),
{
STATE_RENDER
(
WINED3DRS_FOGCOLOR
),
state_fogcolor
},
WINED3D_GL_EXT_NONE
},
...
...
@@ -921,6 +927,7 @@ static const struct StateEntryTemplate atifs_fragmentstate_template[] = {
{
STATE_RENDER
(
WINED3DRS_FOGVERTEXMODE
),
{
STATE_RENDER
(
WINED3DRS_FOGENABLE
),
NULL
},
WINED3D_GL_EXT_NONE
},
{
STATE_RENDER
(
WINED3DRS_FOGSTART
),
{
STATE_RENDER
(
WINED3DRS_FOGSTART
),
state_fogstartend
},
WINED3D_GL_EXT_NONE
},
{
STATE_RENDER
(
WINED3DRS_FOGEND
),
{
STATE_RENDER
(
WINED3DRS_FOGSTART
),
NULL
},
WINED3D_GL_EXT_NONE
},
{
STATE_RENDER
(
WINED3DRS_SRGBWRITEENABLE
),
{
STATE_RENDER
(
WINED3DRS_SRGBWRITEENABLE
),
atifs_srgbwriteenable
},
WINED3D_GL_EXT_NONE
},
{
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLOROP
),
{
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLOROP
),
set_tex_op_atifs
},
WINED3D_GL_EXT_NONE
},
{
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLORARG1
),
{
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLOROP
),
NULL
},
WINED3D_GL_EXT_NONE
},
{
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLORARG2
),
{
STATE_TEXTURESTAGE
(
0
,
WINED3DTSS_COLOROP
),
NULL
},
WINED3D_GL_EXT_NONE
},
...
...
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