From e1398895b304df817d87176ca5b7ccfccd2da520 Mon Sep 17 00:00:00 2001 From: rextimmy Date: Wed, 15 Dec 2021 20:09:18 +1000 Subject: [PATCH] fix opengl device not returning the correct anisotropic value --- Engine/source/gfx/gl/gfxGLDevice.cpp | 1 - Engine/source/gfx/gl/gfxGLDevice.h | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Engine/source/gfx/gl/gfxGLDevice.cpp b/Engine/source/gfx/gl/gfxGLDevice.cpp index d5a73760b..e550b2f88 100644 --- a/Engine/source/gfx/gl/gfxGLDevice.cpp +++ b/Engine/source/gfx/gl/gfxGLDevice.cpp @@ -247,7 +247,6 @@ GFXGLDevice::GFXGLDevice(U32 adapterIndex) : mActiveTextureType[i] = GL_ZERO; mNumVertexStream = 2; - mSupportsAnisotropic = false; for(int i = 0; i < GS_COUNT; ++i) mModelViewProjSC[i] = NULL; diff --git a/Engine/source/gfx/gl/gfxGLDevice.h b/Engine/source/gfx/gl/gfxGLDevice.h index bec934367..3a42db9d6 100644 --- a/Engine/source/gfx/gl/gfxGLDevice.h +++ b/Engine/source/gfx/gl/gfxGLDevice.h @@ -152,7 +152,7 @@ public: virtual void setupGenericShaders( GenericShaderType type = GSColor ); /// - bool supportsAnisotropic() const { return mSupportsAnisotropic; } + bool supportsAnisotropic() const { return mCapabilities.anisotropicFiltering; } GFXGLStateCache* getOpenglCache() { return mOpenglStateCache; } @@ -235,8 +235,6 @@ private: void* mPixelFormat; F32 mPixelShaderVersion; - - bool mSupportsAnisotropic; U32 mNumVertexStream;