Commit a28c15d4 authored by chili's avatar chili
Browse files

assert cannot resolve bindables with special tag '?'

parent 37464aa1
......@@ -39,6 +39,7 @@ namespace Bind
std::shared_ptr<IndexBuffer> IndexBuffer::Resolve( Graphics& gfx,const std::string& tag,
const std::vector<unsigned short>& indices )
{
assert( tag != "?" );
return Codex::Resolve<IndexBuffer>( gfx,tag,indices );
}
std::string IndexBuffer::GenerateUID_( const std::string& tag )
......
......@@ -34,6 +34,7 @@ namespace Bind
std::shared_ptr<VertexBuffer> VertexBuffer::Resolve( Graphics& gfx,const std::string& tag,
const Dvtx::VertexBuffer& vbuf )
{
assert( tag != "?" );
return Codex::Resolve<VertexBuffer>( gfx,tag,vbuf );
}
std::string VertexBuffer::GenerateUID_( const std::string& tag )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment