Merge lp:~3v1n0/nux/fallback-texture into lp:nux
Status: | Merged |
---|---|
Approved by: | Andrea Azzarone |
Approved revision: | 808 |
Merged at revision: | 799 |
Proposed branch: | lp:~3v1n0/nux/fallback-texture |
Merge into: | lp:nux |
Diff against target: |
239 lines (+86/-18) 4 files modified
NuxGraphics/GLTextureResourceManager.cpp (+33/-13) NuxGraphics/ImageSurface.cpp (+1/-0) tests/Makefile.am (+1/-4) tests/gtest-nuxgraphics-texture.cpp (+51/-1) |
To merge this branch: | bzr merge lp:~3v1n0/nux/fallback-texture |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Andrea Azzarone (community) | Approve | ||
Review via email: mp+172927@code.launchpad.net |
Commit message
GLTextureResour
Specifically, if NUX_FALLBACK_
generate a valid texture. This is nice for testing purposes
Description of the change
When generating new textures from a local file or a pixbuf, Nux returns a new (not-NULL) BaseTexture only if the pixbuf is valid or the file exists. This is generally ok, but for testing purposes we sometimes (such as in tests) we need to ignore this and try to return a non-NULL (but empty) texture.
So, now setting the NUX_FALLBACK_
New tests added. Improved logging as well.