X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fcommands.cpp;h=f2c273727c7d2b5fcd7037b77f8df51c1b1f7a1e;hp=2eb4659ad8e6ae0f62ecb2ec2e9aed362dc6afc3;hb=0d5406c66549a2cfc2fca701cc1c4972e7fd493a;hpb=0c7520a69373a5e2c5ec14713ea22a3bdc66f3fa diff --git a/source/core/commands.cpp b/source/core/commands.cpp index 2eb4659a..f2c27372 100644 --- a/source/core/commands.cpp +++ b/source/core/commands.cpp @@ -19,9 +19,11 @@ Commands::Commands(): pipeline_state(0) { } -void Commands::use_pipeline(const PipelineState &ps) +void Commands::use_pipeline(const PipelineState *ps) { - pipeline_state = &ps; + pipeline_state = ps; + if(!pipeline_state) + PipelineState::clear(); } void Commands::clear(const ClearValue *values)