зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
e2e2d0ad34
Коммит
94d1e6851f
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче