Linux compile fix

This commit is contained in:
baldurk committed 2016-03-02 17:45:15 +01:00
1 parent 74c1d16b2b
commit 8e15169a7f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -171,7 +171,7 @@ struct GLResourceRecord : public ResourceRecord
} Map;
template<typename ChunkFilter>
void FilterChunks(ChunkFilter& filter)
void FilterChunks(const ChunkFilter& filter)
{
LockChunks();
std::vector<std::map<int32_t, Chunk *>::iterator> deletions;
@@ -1039,7 +1039,7 @@ void WrappedOpenGL::glUseProgramStages(GLuint pipeline, GLbitfield stages, GLuin
// record), and check if the Stages bitfield afterwards is
// the same - if so we remove that chunk as replaced by
// this one
bool operator () (Chunk *c)
bool operator () (Chunk *c) const
{
if(c->GetChunkType() != USE_PROGRAMSTAGES)
return false;