aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGLTexture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrGLTexture.cpp')
-rw-r--r--src/gpu/GrGLTexture.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/gpu/GrGLTexture.cpp b/src/gpu/GrGLTexture.cpp
index 2a0d5d6fa8..06efb8a36b 100644
--- a/src/gpu/GrGLTexture.cpp
+++ b/src/gpu/GrGLTexture.cpp
@@ -15,24 +15,13 @@
#define GL_CALL(X) GR_GL_CALL(GPUGL->glInterface(), X)
-const GrGLenum* GrGLTexture::WrapMode2GLWrap(GrGLBinding binding) {
- static const GrGLenum mirrorRepeatModes[] = {
- GR_GL_CLAMP_TO_EDGE,
- GR_GL_REPEAT,
- GR_GL_MIRRORED_REPEAT
- };
-
+const GrGLenum* GrGLTexture::WrapMode2GLWrap() {
static const GrGLenum repeatModes[] = {
GR_GL_CLAMP_TO_EDGE,
GR_GL_REPEAT,
- GR_GL_REPEAT
+ GR_GL_MIRRORED_REPEAT
};
-
- if (kES1_GrGLBinding == binding) {
- return repeatModes; // GL_MIRRORED_REPEAT not supported.
- } else {
- return mirrorRepeatModes;
- }
+ return repeatModes;
};
void GrGLTexture::init(GrGpuGL* gpu,