Render: Move Flushing of Texture in a separate function with an optional mask ( that will be extract from shader reflexion)