summaryrefslogtreecommitdiff
path: root/src/resources/image.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-22 21:24:31 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-05 17:14:58 +0200
commit1bc84de412775abcef84c1f604160121f245b131 (patch)
tree9ffe1bdf5a9edeb23899e8e430bf7b28d0382c43 /src/resources/image.h
parent10c75a337be97c93b6de839402461fd400baf128 (diff)
downloadmana-1bc84de412775abcef84c1f604160121f245b131.tar.gz
mana-1bc84de412775abcef84c1f604160121f245b131.tar.bz2
mana-1bc84de412775abcef84c1f604160121f245b131.tar.xz
mana-1bc84de412775abcef84c1f604160121f245b131.zip
Added support for ARB_texture_non_power_of_two extension
If the graphics driver supports this, there is no need to create textures with power-of-two dimensions. It is then also preferred to use regular textures than relying on the older GL_ARB_texture_rectangle extension. Reviewed-by: Erik Schilling
Diffstat (limited to 'src/resources/image.h')
-rw-r--r--src/resources/image.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/resources/image.h b/src/resources/image.h
index 7df74c3f..33db7848 100644
--- a/src/resources/image.h
+++ b/src/resources/image.h
@@ -249,6 +249,7 @@ class Image : public Resource
int mTexWidth, mTexHeight;
static bool mUseOpenGL;
+ static bool mPowerOfTwoTextures;
static int mTextureType;
static int mTextureSize;
#endif