summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-01-29 22:24:39 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-01-29 22:24:39 +0100
commit6709cdbcf91561e70c9cb504663bb4b5f95f1ed3 (patch)
tree6dd1369879928c9fb9a93942d7df0a86779bbaee
parent58a14d0b9fae397cbe874d4baac90d15d92065a1 (diff)
Solved alpha channel bug.
-rw-r--r--image.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/image.cpp b/image.cpp
index a3d0d6a..9850a0b 100644
--- a/image.cpp
+++ b/image.cpp
@@ -28,7 +28,7 @@ void Image::load(const std::string& filename) {
if(ch == 4) {
format = GL_RGBA;
} else {
- format = GL_RGB;
+ format = GL_RGBA;
}
}