public static void glColorSubTableEXT(
     int target, int start, int count, int format, int type, ByteBuffer data) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glColorSubTableEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, count, 1, 1));
   nglColorSubTableEXT(
       target, start, count, format, type, MemoryUtil.getAddress(data), function_pointer);
 }
 public static void glColorTableEXT(
     int target, int internalFormat, int width, int format, int type, ShortBuffer data) {
   ContextCapabilities caps = GLContext.getCapabilities();
   long function_pointer = caps.glColorTableEXT;
   BufferChecks.checkFunctionAddress(function_pointer);
   BufferChecks.checkBuffer(data, GLChecks.calculateImageStorage(data, format, type, width, 1, 1));
   nglColorTableEXT(
       target, internalFormat, width, format, type, MemoryUtil.getAddress(data), function_pointer);
 }