| Index: ui/gl/gl_image_egl.cc
|
| diff --git a/ui/gl/gl_image_egl.cc b/ui/gl/gl_image_egl.cc
|
| index 78998159ff22c4636646695fe31a6ec080b1722f..997ac7a0e742d2b7b04e618c761290adce423d21 100644
|
| --- a/ui/gl/gl_image_egl.cc
|
| +++ b/ui/gl/gl_image_egl.cc
|
| @@ -68,6 +68,11 @@ bool GLImageEGL::BindTexImage(unsigned target) {
|
| return false;
|
| }
|
|
|
| + if (target == GL_TEXTURE_RECTANGLE_ARB) {
|
| + LOG(ERROR) << "EGLImage cannot be bound to TEXTURE_RECTANGLE_ARB target";
|
| + return false;
|
| + }
|
| +
|
| if (target_ && target_ != target) {
|
| LOG(ERROR) << "EGLImage can only be bound to one target";
|
| return false;
|
|
|