   updated.
   ###
   invalidate: (param) ->
-    flags = @get('changedTexParams') || 0
-    @set 'changedTexParams', flags | FLAGS.texture_validity | FLAGS[param]
+    @set 'valid', false
 
   ###
   Returns true if this texture is valid for rendering, false otherwise.

class Jax.Texture
  @include Jax.Mixins.Attributes
  @include Jax.Mixins.EventEmitter

  # Texture params flags, for tracking params needing refreshed
  FLAGS =
    texture_validity:      0x0001
    min_filter:            0x0002
    mag_filter:            0x0004
    generate_mipmap:       0x0008
    mipmap_hint:           0x0010
    format:                0x0020
    target:                0x0040
    data_type:             0x0080
    wrap_s:                0x0100
    wrap_t:                0x0200
    flip_y:                0x0400
    premultiply_alpha:     0x0800
    colorspace_conversion: 0x1000
    data:                  0x2000

  constructor: (options) ->
    @initializeAttributes()

      @generateMipmap gl, target, attrs.mipmap_hint

    # done!
    @forceValid()
    return handle

  generateMipmap: (renderer, target, hint) ->
