X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.cpp;h=87a4bbe952169d8071309255f4847fe9ab399da5;hb=26debbd380c6922e5a0b60d99567c6374a4fef9a;hp=4a9898f14b0f9d3894486145151d7db3b1471a78;hpb=9e06cb73424ca3f0eb971350c5dfb3cdaec0d5bf;p=lugaru.git diff --git a/Source/Person.cpp b/Source/Person.cpp index 4a9898f..87a4bbe 100644 --- a/Source/Person.cpp +++ b/Source/Person.cpp @@ -475,7 +475,7 @@ void Person::DoBloodBig(float howmuch,int which){ } } } - glBindTexture(GL_TEXTURE_2D,skeleton.drawmodel.textureptr); + skeleton.drawmodel.textureptr.bind(); DoMipmaps(); bleedxint=0; @@ -703,7 +703,7 @@ bool Person::DoBloodBigWhere(float howmuch,int which, XYZ where){ } } } - glBindTexture(GL_TEXTURE_2D,skeleton.drawmodel.textureptr); + skeleton.drawmodel.textureptr.bind(); DoMipmaps(); bleedy=(1+coordsy)*512; @@ -3858,7 +3858,7 @@ void Person::DoStuff(){ if(bleeding>0){ bleeding-=multiplier*.3; if(bloodtoggle==2){ - glBindTexture(GL_TEXTURE_2D,skeleton.drawmodel.textureptr); + skeleton.drawmodel.textureptr.bind(); if(bleeding<=0&&(detail!=2||osx))DoMipmaps(); } } @@ -3984,7 +3984,7 @@ void Person::DoStuff(){ } } if(!osx&&detail>1){ - glBindTexture(GL_TEXTURE_2D,skeleton.drawmodel.textureptr); + skeleton.drawmodel.textureptr.bind(); DoMipmaps(); }