summaryrefslogtreecommitdiff
path: root/texture.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-02-27 23:48:41 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-02-27 23:48:41 +0100
commit77361abc13c02469d41af5d937adf517ac5326b9 (patch)
tree2d2fa8316867349413764dee21eade239fe8d8ce /texture.cpp
parentb353185ff989e2dd058284dc5b1a6d5d6197bcbd (diff)
Added SDL_image based texture loader.
Diffstat (limited to 'texture.cpp')
-rwxr-xr-xtexture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/texture.cpp b/texture.cpp
index 5a4a7ab..cbf9f40 100755
--- a/texture.cpp
+++ b/texture.cpp
@@ -21,5 +21,5 @@ void Texture::build() {
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR_MIPMAP_NEAREST);
//glTexImage2D(GL_TEXTURE_2D, 0, 4, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, data);
- gluBuild2DMipmaps(GL_TEXTURE_2D, 4, width, height, GL_RGBA, GL_UNSIGNED_BYTE, data);
+ gluBuild2DMipmaps(GL_TEXTURE_2D, 4, width, height, GL_BGRA, GL_UNSIGNED_BYTE, data);
}