Skip to content
  • Neil Roberts's avatar
    Don't create a dummy texture for the texture pipeline template · 6014d31d
    Neil Roberts authored
    The meta_create_texture_pipeline function used to create a dummy 1x1
    texture so that it could make sure that the all of the state that
    affects the shader generation would be set on the template pipeline so
    that Cogl could share the pipeline's shader with any other pipelines
    that are just rendering a texture. This is no longer necessary because
    the only thing that affects the shader generation is the texture type,
    not the actual texture data and Cogl now has a function to explicitly
    set the texture type which we can use instead. Additionally even if
    the template mechanism is not used at all Cogl will still end up
    reusing the same shader because it now has a shader cache which is
    indexed by the pipeline state so pipeline's don't strictly need to
    share ancestry in order to take advantage of it. However we still
    might as well use the function because if there is a common ancestry
    it is faster to look up the shader because Cogl doesn't need to hash
    the pipeline state.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707458
    (cherry picked from commit c5bf60ea)
    6014d31d