Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
b282e00c
Commit
b282e00c
authored
Apr 11, 2011
by
Laurent Aimar
Browse files
Checked D3DCAPS9 before setting D3DPTFILTERCAPS_MINFLINEAR/D3DPTFILTERCAPS_MAGFLINEAR (direct3d).
parent
6e559fbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_output/msw/direct3d.c
View file @
b282e00c
...
...
@@ -970,8 +970,20 @@ static int Direct3DCreateScene(vout_display_t *vd, const video_format_t *fmt)
IDirect3DDevice9_SetSamplerState
(
d3ddev
,
0
,
D3DSAMP_ADDRESSV
,
D3DTADDRESS_CLAMP
);
// Set linear filtering quality
IDirect3DDevice9_SetSamplerState
(
d3ddev
,
0
,
D3DSAMP_MINFILTER
,
D3DTEXF_LINEAR
);
IDirect3DDevice9_SetSamplerState
(
d3ddev
,
0
,
D3DSAMP_MAGFILTER
,
D3DTEXF_LINEAR
);
if
(
sys
->
d3dcaps
.
TextureFilterCaps
&
D3DPTFILTERCAPS_MINFLINEAR
)
{
msg_Dbg
(
vd
,
"Using D3DTEXF_LINEAR for minification"
);
IDirect3DDevice9_SetSamplerState
(
d3ddev
,
0
,
D3DSAMP_MINFILTER
,
D3DTEXF_LINEAR
);
}
else
{
msg_Dbg
(
vd
,
"Using D3DTEXF_POINT for minification"
);
IDirect3DDevice9_SetSamplerState
(
d3ddev
,
0
,
D3DSAMP_MINFILTER
,
D3DTEXF_POINT
);
}
if
(
sys
->
d3dcaps
.
TextureFilterCaps
&
D3DPTFILTERCAPS_MAGFLINEAR
)
{
msg_Dbg
(
vd
,
"Using D3DTEXF_LINEAR for magnification"
);
IDirect3DDevice9_SetSamplerState
(
d3ddev
,
0
,
D3DSAMP_MAGFILTER
,
D3DTEXF_LINEAR
);
}
else
{
msg_Dbg
(
vd
,
"Using D3DTEXF_POINT for magnification"
);
IDirect3DDevice9_SetSamplerState
(
d3ddev
,
0
,
D3DSAMP_MAGFILTER
,
D3DTEXF_POINT
);
}
// set maximum ambient light
IDirect3DDevice9_SetRenderState
(
d3ddev
,
D3DRS_AMBIENT
,
D3DCOLOR_XRGB
(
255
,
255
,
255
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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