 
 
 class RenderManager
-    constructor: (context, canvas, width, height, glflags, on_webgl_failed, on_context_lost, on_context_restored, no_s3tc)->
+    constructor: (context, canvas, width, height, glflags)->
         try
             gl = canvas.getContext("webgl", glflags) or canvas.getContext("experimental-webgl", glflags)
         catch e


        lost = (event)->
            event.preventDefault()
            on_context_lost?()
            render_manager.clear_context()
        restored = (event)->
            render_manager.restore_context()
            on_context_restored? and requestAnimationFrame(on_context_restored)
        canvas.addEventListener "webglcontextlost", lost, false
        canvas.addEventListener "webglcontextrestored", restored, false
        @initialize()

                gl = canvas.getContext("webgl", glflags) or canvas.getContext("experimental-webgl", glflags)

        if not gl
            context.MYOU_PARAMS.on_webgl_failed?()
            throw "Error: Can't start WebGL"

        @context = context
