Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Removed anisotropic option from SDL_HINT_RENDER_SCALE_QUALITY.
Browse files Browse the repository at this point in the history
Anisotropic filtering is meant to be used for textures at a stark
 angle, not perpendicular to the camera.
  • Loading branch information
icculus committed Aug 6, 2013
1 parent bad0be2 commit 24a6559
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/SDL_hints.h
Expand Up @@ -100,7 +100,7 @@ extern "C" {
* This variable can be set to the following values:
* "0" or "nearest" - Nearest pixel sampling
* "1" or "linear" - Linear filtering (supported by OpenGL and Direct3D)
* "2" or "best" - Anisotropic filtering (supported by Direct3D)
* "2" or "best" - Currently this is the same as "linear"
*
* By default nearest pixel sampling is used
*/
Expand Down
4 changes: 1 addition & 3 deletions src/render/direct3d/SDL_render_d3d.c
Expand Up @@ -864,10 +864,8 @@ GetScaleQuality(void)

if (!hint || *hint == '0' || SDL_strcasecmp(hint, "nearest") == 0) {
return D3DTEXF_POINT;
} else if (*hint == '1' || SDL_strcasecmp(hint, "linear") == 0) {
} else /*if (*hint == '1' || SDL_strcasecmp(hint, "linear") == 0)*/ {
return D3DTEXF_LINEAR;
} else {
return D3DTEXF_ANISOTROPIC;
}
}

Expand Down

0 comments on commit 24a6559

Please sign in to comment.