Commit 89480a0b authored by Benoit Jacob's avatar Benoit Jacob
Browse files

Bug 737182 - drop WebGL cube map workaround, now that we have it handled in GLContext - r=jrmuizel

parent dd25cdbd
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -580,14 +580,6 @@ WebGLContext::InitAndValidateGL()
        gl->fGetIntegerv(LOCAL_GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, &mGLMaxVertexTextureImageUnits);
        gl->fGetIntegerv(LOCAL_GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, &mGLMaxVertexTextureImageUnits);
    }
    }


#ifdef XP_MACOSX
    if (gl->Vendor() == gl::GLContext::VendorIntel) {
        // bug 684882, corruption in large cube maps on Intel Mac driver.
        // Is reported to only affect Mac OS < 10.7.2 but don't want to rely on that yet.
        mGLMaxCubeMapTextureSize = NS_MIN(mGLMaxCubeMapTextureSize, 512);
    }
#endif

    if (MinCapabilityMode()) {
    if (MinCapabilityMode()) {
        mGLMaxFragmentUniformVectors = MINVALUE_GL_MAX_FRAGMENT_UNIFORM_VECTORS;
        mGLMaxFragmentUniformVectors = MINVALUE_GL_MAX_FRAGMENT_UNIFORM_VECTORS;
        mGLMaxVertexUniformVectors = MINVALUE_GL_MAX_VERTEX_UNIFORM_VECTORS;
        mGLMaxVertexUniformVectors = MINVALUE_GL_MAX_VERTEX_UNIFORM_VECTORS;