def from_rgba8(data, width, height)
        using {
            GL.TexImage2D(GL::TEXTURE_2D, mipmap=0, GL::RGBA, width, height, border=0, GL::RGBA, GL::UNSIGNED_BYTE, data)
            yield if block_given?
        }