OPENGL: Add support for filtering feature

This replaces the two graphics modes "OpenGL (No filtering)" and
"OpenGL". Now there is a single "OpenGL" mode and filtering is
controlled by the kFeatureFilteringMode.
This commit is contained in:
Thierry Crozat 2016-10-12 22:36:16 +01:00
parent 3e08c33c35
commit c6ce1c8002
2 changed files with 32 additions and 20 deletions

View file

@ -50,8 +50,7 @@ class Shader;
#endif
enum {
GFX_LINEAR = 0,
GFX_NEAREST = 1
GFX_OPENGL = 0
};
class OpenGLGraphicsManager : virtual public GraphicsManager {
@ -213,7 +212,7 @@ private:
#ifdef USE_RGB_COLOR
gameFormat(),
#endif
aspectRatioCorrection(false), graphicsMode(GFX_LINEAR) {
aspectRatioCorrection(false), graphicsMode(GFX_OPENGL), filtering(true) {
}
bool valid;
@ -224,6 +223,7 @@ private:
#endif
bool aspectRatioCorrection;
int graphicsMode;
bool filtering;
bool operator==(const VideoState &right) {
return gameWidth == right.gameWidth && gameHeight == right.gameHeight
@ -231,7 +231,8 @@ private:
&& gameFormat == right.gameFormat
#endif
&& aspectRatioCorrection == right.aspectRatioCorrection
&& graphicsMode == right.graphicsMode;
&& graphicsMode == right.graphicsMode
&& filtering == right.filtering;
}
bool operator!=(const VideoState &right) {