]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture.cpp
Style update: add spaces around assignment operators
[libs/gl.git] / source / texture.cpp
index e897ba92a138ab8282e013ce5bb74938bc74b734..40f18d45eff1f0c8d10d2363d8ea2a6123bbc650 100644 (file)
@@ -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;