From 24a655938741d5fcaec033abedbe866913f73bf2 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 6 Aug 2013 00:23:04 -0400 Subject: [PATCH] Removed anisotropic option from SDL_HINT_RENDER_SCALE_QUALITY. Anisotropic filtering is meant to be used for textures at a stark angle, not perpendicular to the camera. --- include/SDL_hints.h | 2 +- src/render/direct3d/SDL_render_d3d.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/SDL_hints.h b/include/SDL_hints.h index f27769953..74b63ee09 100644 --- a/include/SDL_hints.h +++ b/include/SDL_hints.h @@ -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 */ diff --git a/src/render/direct3d/SDL_render_d3d.c b/src/render/direct3d/SDL_render_d3d.c index bfabd6545..05df45e4a 100644 --- a/src/render/direct3d/SDL_render_d3d.c +++ b/src/render/direct3d/SDL_render_d3d.c @@ -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; } }