`glBindSampler` wasn't added until OpenGL 3.3. I'd like to keep this compatible with OpenGL 3.2 (for OS X compatibility). Could you change this to something like:

    if(gltextBindSampler) {
        gltextBindSampler(0, 0);
    }

so that the code continues to work on the older version of OpenGL?