OSDN Git Service

Dont set wrap mode to GL_REPEAT.
authorKalyan Kondapally <kalyan.kondapally@intel.com>
Sun, 22 Jan 2017 10:12:22 +0000 (02:12 -0800)
committerKalyan Kondapally <kalyan.kondapally@intel.com>
Sun, 22 Jan 2017 10:12:22 +0000 (02:12 -0800)
From https://www.khronos.org/registry/gles/extensions/OES/OES_EGL_image_external.txt

"The default s and t wrap modes are CLAMP_TO_EDGE
        and it is an INVALID_ENUM error to set the wrap mode to any other
        value. "

Jira: None.
Test: Enable MESA_DEBUG=1 and check that Mesa doesnt throw INVALID_ENUM
      errors.

common/compositor/gl/nativeglresource.cpp

index 06e8e71..81c954d 100644 (file)
@@ -44,8 +44,6 @@ bool NativeGLResource::PrepareResources(
                                  (GLeglImageOES)egl_image);
     glTexParameteri(GL_TEXTURE_EXTERNAL_OES, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
     glTexParameteri(GL_TEXTURE_EXTERNAL_OES, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
-    glTexParameteri(GL_TEXTURE_EXTERNAL_OES, GL_TEXTURE_WRAP_S, GL_REPEAT);
-    glTexParameteri(GL_TEXTURE_EXTERNAL_OES, GL_TEXTURE_WRAP_T, GL_REPEAT);
     glBindTexture(GL_TEXTURE_EXTERNAL_OES, 0);
     layer_textures_.emplace_back(texture);
     eglDestroyImageKHR(egl_display, egl_image);