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
d2479536
Commit
d2479536
authored
Jul 05, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Test for multisampling in the template.
parent
9c1b6581
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
state.c
dlls/wined3d/state.c
+14
-13
No files found.
dlls/wined3d/state.c
View file @
d2479536
...
...
@@ -1633,19 +1633,19 @@ static void state_wrap(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DC
}
}
static
void
state_multisampleaa
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
if
(
GL_SUPPORT
(
ARB_MULTISAMPLE
)
)
{
if
(
stateblock
->
renderState
[
WINED3DRS_MULTISAMPLEANTIALIAS
])
{
glEnable
(
GL_MULTISAMPLE_ARB
);
checkGLcall
(
"glEnable(GL_MULTISAMPLE_ARB)"
);
}
else
{
glDisable
(
GL_MULTISAMPLE_ARB
);
checkGLcall
(
"glDisable(GL_MULTISAMPLE_ARB)"
);
}
static
void
state_msaa_w
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
if
(
stateblock
->
renderState
[
WINED3DRS_MULTISAMPLEANTIALIAS
])
{
WARN
(
"Multisample antialiasing not supported by gl
\n
"
);
}
}
static
void
state_msaa
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
if
(
stateblock
->
renderState
[
WINED3DRS_MULTISAMPLEANTIALIAS
])
{
glEnable
(
GL_MULTISAMPLE_ARB
);
checkGLcall
(
"glEnable(GL_MULTISAMPLE_ARB)"
);
}
else
{
if
(
stateblock
->
renderState
[
WINED3DRS_MULTISAMPLEANTIALIAS
])
{
WARN
(
"Multisample antialiasing not supported by gl
\n
"
);
}
glDisable
(
GL_MULTISAMPLE_ARB
);
checkGLcall
(
"glDisable(GL_MULTISAMPLE_ARB)"
);
}
}
...
...
@@ -3940,7 +3940,8 @@ const struct StateEntryTemplate misc_state_template[] = {
{
STATE_RENDER
(
WINED3DRS_ADAPTIVETESS_Z
),
{
STATE_RENDER
(
WINED3DRS_ENABLEADAPTIVETESSELLATION
),
state_tessellation
},
0
},
{
STATE_RENDER
(
WINED3DRS_ADAPTIVETESS_W
),
{
STATE_RENDER
(
WINED3DRS_ENABLEADAPTIVETESSELLATION
),
state_tessellation
},
0
},
{
STATE_RENDER
(
WINED3DRS_ENABLEADAPTIVETESSELLATION
),
{
STATE_RENDER
(
WINED3DRS_ENABLEADAPTIVETESSELLATION
),
state_tessellation
},
0
},
{
STATE_RENDER
(
WINED3DRS_MULTISAMPLEANTIALIAS
),
{
STATE_RENDER
(
WINED3DRS_MULTISAMPLEANTIALIAS
),
state_multisampleaa
},
0
},
{
STATE_RENDER
(
WINED3DRS_MULTISAMPLEANTIALIAS
),
{
STATE_RENDER
(
WINED3DRS_MULTISAMPLEANTIALIAS
),
state_msaa
},
ARB_MULTISAMPLE
},
{
STATE_RENDER
(
WINED3DRS_MULTISAMPLEANTIALIAS
),
{
STATE_RENDER
(
WINED3DRS_MULTISAMPLEANTIALIAS
),
state_msaa_w
},
0
},
{
STATE_RENDER
(
WINED3DRS_MULTISAMPLEMASK
),
{
STATE_RENDER
(
WINED3DRS_MULTISAMPLEMASK
),
state_multisampmask
},
0
},
{
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
{
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
state_colorwrite
},
0
},
{
STATE_RENDER
(
WINED3DRS_BLENDOP
),
{
STATE_RENDER
(
WINED3DRS_BLENDOP
),
state_blendop
},
EXT_BLEND_MINMAX
},
...
...
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