summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tiletex.cc
diff options
context:
space:
mode:
authorIxtli <cg@325i.org>2010-03-12 06:56:44 +0900
committerEnne Walker <ennewalker@users.sourceforge.net>2010-04-24 10:19:44 -0400
commit96377c8e38ae1d751bc7cc2ff82fcfd36faf5e05 (patch)
tree1c64996c73d249fe757cff2a2c358d6246edb8b7 /crawl-ref/source/tiletex.cc
parentdc2af3903aaf06dcb886af528decf017a3e0c1ce (diff)
downloadcrawl-ref-96377c8e38ae1d751bc7cc2ff82fcfd36faf5e05.tar.gz
crawl-ref-96377c8e38ae1d751bc7cc2ff82fcfd36faf5e05.zip
Made glwrapper use proper dynamic dispatch for modularity.
Diffstat (limited to 'crawl-ref/source/tiletex.cc')
-rw-r--r--crawl-ref/source/tiletex.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/tiletex.cc b/crawl-ref/source/tiletex.cc
index 41f053b96f..4a826b1fb5 100644
--- a/crawl-ref/source/tiletex.cc
+++ b/crawl-ref/source/tiletex.cc
@@ -28,7 +28,7 @@ void GenericTexture::unload_texture()
if (!m_handle)
return;
- GLStateManager::delete_textures(1, &m_handle);
+ glmanager->delete_textures(1, &m_handle);
}
bool GenericTexture::load_texture(const char *filename,
@@ -61,7 +61,7 @@ bool GenericTexture::load_texture(const char *filename,
}
unsigned int bpp = img->bytes_per_pixel();
- GLStateManager::pixelstore_unpack_alignment(bpp);
+ glmanager->pixelstore_unpack_alignment(bpp);
// Determine texture format
unsigned char *pixels = (unsigned char*)img->pixels();
@@ -221,9 +221,9 @@ bool GenericTexture::load_texture(unsigned char *pixels, unsigned int new_width,
m_width = new_width;
m_height = new_height;
- GLStateManager::generate_textures(1, &m_handle);
- GLStateManager::bind_texture(m_handle);
- GLStateManager::load_texture(pixels, m_width, m_height, mip_opt);
+ glmanager->generate_textures(1, &m_handle);
+ glmanager->bind_texture(m_handle);
+ glmanager->load_texture(pixels, m_width, m_height, mip_opt);
return (true);
}
@@ -231,7 +231,7 @@ bool GenericTexture::load_texture(unsigned char *pixels, unsigned int new_width,
void GenericTexture::bind() const
{
ASSERT(m_handle);
- GLStateManager::bind_texture(m_handle);
+ glmanager->bind_texture(m_handle);
}
TilesTexture::TilesTexture() :