Bug 849004 - Remove redundant GLContext::mMaxTextureImageSize. r=lsalzman

MozReview-Commit-ID: ExNR7qKxigx

Differential Revision: https://phabricator.services.mozilla.com/D19324

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jeff Gilbert 2019-02-11 03:34:48 +00:00
parent e2e2d0ad34
commit 94d1e6851f
3 changed files with 0 additions and 9 deletions

View File

@ -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);
}

View File

@ -3454,8 +3454,6 @@ class GLContext : public GLLibraryLoader,
static bool ListHasExtension(const GLubyte* extensions,
const char* extension);
GLint GetMaxTextureImageSize() { return mMaxTextureImageSize; }
public:
std::map<GLuint, SharedSurface*> 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;

View File

@ -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);