Fixed up some code.

This commit is contained in:
Alex Szpakowski
2015-11-30 02:26:59 -04:00
parent 4c82c96369
commit 6036454a20
3 changed files with 17 additions and 4 deletions
+9 -1
View File
@@ -531,8 +531,16 @@ bool Image::setWrap(const Texture::Wrap &w)
wrap.s = wrap.t = WRAP_CLAMP;
}
if (!gl.isClampZeroTextureWrapSupported())
{
if (wrap.s == WRAP_CLAMP_ZERO)
wrap.s = WRAP_CLAMP;
if (wrap.t == WRAP_CLAMP_ZERO)
wrap.t = WRAP_CLAMP;
}
gl.bindTexture(texture);
gl.setTextureWrap(w);
gl.setTextureWrap(wrap);
return success;
}