X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Ftexture.cc;h=3af8116b5e66d62da4afca37543530c7e3849c34;hp=ed34798793dfdc1261f4ef3285b976176c08fbcc;hb=0d4fe99398b649a5471417f8497a828b5f128da1;hpb=92e1b315a32da123b2f8d7bb633375033a10c66d diff --git a/src/texture.cc b/src/texture.cc index ed34798..3af8116 100644 --- a/src/texture.cc +++ b/src/texture.cc @@ -185,7 +185,7 @@ void Texture::create(int xsz, int ysz, TextureType textype, unsigned int ifmt) glTexParameteri(target, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(target, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - switch(type) { + switch(textype) { case TEX_2D: glTexImage2D(GL_TEXTURE_2D, 0, glifmt_from_ifmt(ifmt), xsz, ysz, 0, fmt, type, 0); break;