Ignore:
Timestamp:
Feb 19, 2011, 10:09:20 PM (9 years ago)
Author:
sam
Message:

Protect the Shader constructor and provide a static creation method that
will let us cache shaders.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.cpp

    r667 r668  
    8686
    8787#if LOL_EXPERIMENTAL
    88     stdshader = new Shader(vertexshader, fragmentshader);
     88    stdshader = Shader::Create(vertexshader, fragmentshader);
    8989#endif
    9090}
     
    169169{
    170170#if LOL_EXPERIMENTAL
    171     delete stdshader;
     171    Shader::Destroy(stdshader);
    172172#endif
    173173}
Note: See TracChangeset for help on using the changeset viewer.