Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/master' into savegame-re…
Browse files Browse the repository at this point in the history
…factor
  • Loading branch information
danij-deng committed Mar 26, 2014
2 parents a83f621 + 82c07ef commit 0124ff3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
3 changes: 3 additions & 0 deletions doomsday/libdeng2/src/filesys/file.cpp
Expand Up @@ -338,6 +338,9 @@ File *File::reinterpret()
original->flush();
result = fileSystem().interpret(original);

// The interpreter should use whatever origin feed the file was previously using.
result->setOriginFeed(d->originFeed);

if(deleteThis)
{
DENG2_ASSERT(result != this);
Expand Down
7 changes: 7 additions & 0 deletions doomsday/libgui/include/de/gui/atlas.h
Expand Up @@ -67,6 +67,13 @@ class LIBGUI_PUBLIC Atlas : public Lockable
*/
WrapBordersInBackingStore = 0x4,

/**
* All commits are logged as XVerbose log entries. A commit occurs when the
* atlas backing store contents are copied to the actual atlas storage (for
* instance a GL texture).
*/
LogCommitsAsXVerbose = 0x8,

DefaultFlags = 0
};
Q_DECLARE_FLAGS(Flags, Flag)
Expand Down
11 changes: 8 additions & 3 deletions doomsday/libgui/src/atlas.cpp
Expand Up @@ -406,13 +406,18 @@ void Atlas::commit() const
if(d->mustCommitFull())
{
DENG2_ASSERT(d->backing.size() == d->totalSize);
LOGDEV_GL_XVERBOSE("Full commit ") << d->backing.size().asText();

if(d->flags.testFlag(LogCommitsAsXVerbose))
{
LOGDEV_GL_XVERBOSE("Full commit ") << d->backing.size().asText();
}
commitFull(d->backing);
}
else
{
LOGDEV_GL_XVERBOSE("Partial commit ") << d->changedArea.asText();
if(d->flags.testFlag(LogCommitsAsXVerbose))
{
LOGDEV_GL_XVERBOSE("Partial commit ") << d->changedArea.asText();
}

// An extra copy is done to crop to the changed area.
commit(d->backing.subImage(d->changedArea), d->changedArea.topLeft);
Expand Down

0 comments on commit 0124ff3

Please sign in to comment.