Eliminate boolean return code

This commit is contained in:
John Firebaugh
2015-07-02 15:15:17 -07:00
parent b60b6c47c0
commit 1a5eab785c
5 changed files with 10 additions and 12 deletions

View File

@@ -24,16 +24,15 @@ bool Raster::isLoaded() const {
return loaded;
}
bool Raster::load(PremultipliedImage image) {
void Raster::load(PremultipliedImage image) {
assert(image.data.get());
img = std::move(image);
width = GLsizei(img.width);
height = GLsizei(img.height);
std::lock_guard<std::mutex> lock(mtx);
if (img.data.get()) {
loaded = true;
}
return loaded;
loaded = true;
}