gles2: remove gl_clamp_to_border
this is now unnecessary and also has issues
on devices with gles version lower than 3.2
@@ -2096,13 +2096,6 @@ impl Gles2Frame {
unsafe {
self.gl.ActiveTexture(ffi::TEXTURE0);
self.gl.BindTexture(target, tex.0.texture);
- self.gl
- .TexParameteri(target, ffi::TEXTURE_WRAP_S, ffi::CLAMP_TO_BORDER as i32);
- self.gl
- .TexParameteri(target, ffi::TEXTURE_WRAP_T, ffi::CLAMP_TO_BORDER as i32);
- let border_color = [0.0f32, 0.0f32, 0.0f32, 0.0f32];
- self.gl
- .TexParameterfv(target, ffi::TEXTURE_BORDER_COLOR, border_color.as_ptr());
self.gl.TexParameteri(
target,
ffi::TEXTURE_MIN_FILTER,
