Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
b282e00c
Commit
b282e00c
authored
Apr 11, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checked D3DCAPS9 before setting D3DPTFILTERCAPS_MINFLINEAR/D3DPTFILTERCAPS_MAGFLINEAR (direct3d).
parent
6e559fbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
modules/video_output/msw/direct3d.c
modules/video_output/msw/direct3d.c
+14
-2
No files found.
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
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