deleteFramebuffer method

void deleteFramebuffer(
  1. Framebuffer? framebuffer
)

Implementation

void deleteFramebuffer(Framebuffer? framebuffer){
  if(framebuffer == null) return;
  startCheck('deleteFramebuffer');
  final List<int> _texturesList = [framebuffer.id];
  final ptr = calloc<Uint32>(_texturesList.length);
  ptr.asTypedList(1).setAll(0, _texturesList);
  gl.glDeleteFramebuffers(1, ptr);
  calloc.free(ptr);
  checkError('deleteFramebuffer');
}