X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture.cpp;h=40f18d45eff1f0c8d10d2363d8ea2a6123bbc650;hp=e897ba92a138ab8282e013ce5bb74938bc74b734;hb=b617c5d7b5283ad260a77f01e42e6170cabbc03d;hpb=f17794d55923d4fb4f63e9d082d8d84a735a04e8 diff --git a/source/texture.cpp b/source/texture.cpp index e897ba92..40f18d45 100644 --- a/source/texture.cpp +++ b/source/texture.cpp @@ -20,17 +20,17 @@ istream &operator>>(istream &in, TextureFilter &tf) 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); @@ -43,7 +43,7 @@ void Texture::bind() const 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) @@ -82,7 +82,7 @@ Texture::~Texture() void Texture::unbind() { - const Texture *cur=TexUnit::current().get_texture(); + const Texture *cur = TexUnit::current().get_texture(); if(!cur) return;