diff --git a/gfx/gl/GLContext.cpp b/gfx/gl/GLContext.cpp index 2a8bff4bb78a..29739e70f16b 100644 --- a/gfx/gl/GLContext.cpp +++ b/gfx/gl/GLContext.cpp @@ -904,8 +904,6 @@ bool GLContext::InitWithPrefixImpl(const char* prefix, bool trygl) { } #endif - mMaxTextureImageSize = mMaxTextureSize; - if (IsSupported(GLFeature::framebuffer_multisample)) { fGetIntegerv(LOCAL_GL_MAX_SAMPLES, (GLint*)&mMaxSamples); } diff --git a/gfx/gl/GLContext.h b/gfx/gl/GLContext.h index 3c6d9efe5213..9aa241ca294f 100644 --- a/gfx/gl/GLContext.h +++ b/gfx/gl/GLContext.h @@ -3454,8 +3454,6 @@ class GLContext : public GLLibraryLoader, static bool ListHasExtension(const GLubyte* extensions, const char* extension); - GLint GetMaxTextureImageSize() { return mMaxTextureImageSize; } - public: std::map mFBOMapping; @@ -3586,7 +3584,6 @@ class GLContext : public GLLibraryLoader, uint32_t mMaxTexOrRbSize = 0; GLint mMaxTextureSize = 0; GLint mMaxCubeMapTextureSize = 0; - GLint mMaxTextureImageSize = 0; GLint mMaxRenderbufferSize = 0; GLint mMaxViewportDims[2] = {}; GLsizei mMaxSamples = 0; diff --git a/gfx/gl/GLContextProviderEGL.cpp b/gfx/gl/GLContextProviderEGL.cpp index 542bcacefff6..68786a6f7286 100644 --- a/gfx/gl/GLContextProviderEGL.cpp +++ b/gfx/gl/GLContextProviderEGL.cpp @@ -361,10 +361,6 @@ bool GLContextEGL::Init() { return false; } - static_assert(sizeof(GLint) >= sizeof(int32_t), - "GLint is smaller than int32_t"); - mMaxTextureImageSize = INT32_MAX; - mShareWithEGLImage = mEgl->HasKHRImageBase() && mEgl->HasKHRImageTexture2D() && IsExtensionSupported(OES_EGL_image);