summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/gl/gl_image_egl.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/gl/gl_image_egl.cc b/ui/gl/gl_image_egl.cc
index 7899815..997ac7a 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;