Index: content/common/gpu/media/omx_video_decode_accelerator_unittest.cc |
=================================================================== |
--- content/common/gpu/media/omx_video_decode_accelerator_unittest.cc (revision 91549) |
+++ content/common/gpu/media/omx_video_decode_accelerator_unittest.cc (working copy) |
@@ -308,6 +308,9 @@ |
GL_UNSIGNED_BYTE, NULL); |
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); |
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); |
+ // OpenGLES2.0.25 section 3.8.2 requires CLAMP_TO_EDGE for NPOT textures. |
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); |
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); |
CHECK_EQ(static_cast<int>(glGetError()), GL_NO_ERROR); |
CHECK(texture_id_to_surface_index_.insert( |
std::make_pair(*texture_id, window_id)).second); |