in>>str;
if(str=="NEAREST")
- tf=NEAREST;
+ tf = NEAREST;
else if(str=="LINEAR")
- tf=LINEAR;
+ tf = LINEAR;
else if(str=="NEAREST_MIPMAP_NEAREST")
- tf=NEAREST_MIPMAP_NEAREST;
+ tf = NEAREST_MIPMAP_NEAREST;
else if(str=="NEAREST_MIPMAP_LINEAR")
- tf=NEAREST_MIPMAP_LINEAR;
+ tf = NEAREST_MIPMAP_LINEAR;
else if(str=="LINEAR_MIPMAP_NEAREST")
- tf=LINEAR_MIPMAP_NEAREST;
+ tf = LINEAR_MIPMAP_NEAREST;
else if(str=="LINEAR_MIPMAP_LINEAR")
- tf=LINEAR_MIPMAP_LINEAR;
+ tf = LINEAR_MIPMAP_LINEAR;
else
in.setstate(ios_base::failbit);
if(!target)
throw InvalidState("Attempt to bind a texture without target");
- const Texture *cur=TexUnit::current().get_texture();
+ const Texture *cur = TexUnit::current().get_texture();
if(cur!=this)
{
if(cur && cur->target!=target)
void Texture::unbind()
{
- const Texture *cur=TexUnit::current().get_texture();
+ const Texture *cur = TexUnit::current().get_texture();
if(!cur)
return;