Skip to content

Commit

Permalink
Client|Renderer: Load shaders in package order
Browse files Browse the repository at this point in the history
Shader definitions are now loaded in package load order (although that
has no practical effect at the moment).
  • Loading branch information
skyjake committed Jul 15, 2014
1 parent 01102d5 commit 871eaa1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doomsday/client/src/render/rendersystem.cpp
Expand Up @@ -213,12 +213,15 @@ DENG2_PIMPL(RenderSystem)
/**
* Reads all shader definitions and sets up a Bank where the actual
* compiled shaders are stored once they're needed.
*
* @todo This should be reworked to support unloading packages, and
* loading of new shaders from any newly loaded packages. -jk
*/
void loadAllShaders()
{
// Load all the shader program definitions.
FS::FoundFiles found;
App::fileSystem().findAll("shaders.dei", found);
App::fileSystem().nameIndex().findPartialPathInPackageOrder("shaders.dei", found);
DENG2_FOR_EACH(FS::FoundFiles, i, found)
{
LOG_MSG("Loading shader definitions from %s") << (*i)->description();
Expand Down

0 comments on commit 871eaa1

Please sign in to comment.