Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Hack to fall back on old createTexture API

#149

Signature for createTexture changed a while back - http://blog.tojicode.com/2010/07/obsolete-teximage2d-wha.html

Found that FireFox supported this, but Chrome lagged behind, so I create textures as below. Remove this when all browser are using the new signature.

 try {

            /* New API change - https://xeolabs.lighthouseapp.com/projects/50643/tickets/129-fix-for-calling-obsolete-teximage2d
             */
            context.texImage2D(context.TEXTURE_2D, 0, context.RGBA, context.RGBA, context.UNSIGNED_BYTE, cfg.image);
        } catch (e) {

            /* Fall back for old browser
             */            
            context.texImage2D(context.TEXTURE_2D, 0, cfg.image, cfg.flipY);
        }

Reported by lindsay.kay (at xeolabs) · August 16th, 2010 @ 01:22 AM

State: hack
Milestone: V0.7.7

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.