*/
  public float [] tex_level_parameterfv (int target, int level, int pname) {
    RequestOutputStream o = display.out;
    float [] ret;
    synchronized (o) {
      o.begin_request (glx.major_opcode, 138, 5);
      o.write_int32 (tag);
      o.write_int32 (target);
      o.write_int32 (level);
      o.write_int32 (pname);
      ResponseInputStream in = display.in;
      synchronized (in) {
        in.skip (12);
        int n = in.read_int32 ();
        ret = new float [n];
        if (n == 1) {
          ret [0] = in.read_float32 ();
          in.skip (12);
        } else {
          in.skip (16);
          for (int i = 0; i < n; i++)
            ret [i] = in.read_float32 ();
        }
      }
    }
    return ret;
  }