         ## doesn't work for limiting color clearing
         ## unless we enable preserveDrawingBuffer but may be inefficient
         #render_manager.gl.scissor(left, top, size_x, size_y)
-        Framebuffer.active_rect = [left, top, size_x, size_y]
+        vec4.set Framebuffer.active_rect, left, top, size_x, size_y
         
     disable: ->
         {gl} = @context.render_manager

{Filter} = require './filters.coffee'

component_types =

        @framebuffer = null
        @is_complete = true

Framebuffer.active_rect = new vec4.create()

module.exports = {Framebuffer, MainFramebuffer}
