diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-23 21:18:22 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-23 21:18:22 +0000 |
commit | 7c762647e3744c83f1d08f58e199a0b0d29709dc (patch) | |
tree | aa6b3044c9054c072877d8428a290dce065174d5 | |
parent | a79372826c8cb9d2cd3362433e992610dccd2498 (diff) | |
download | chromium_src-7c762647e3744c83f1d08f58e199a0b0d29709dc.zip chromium_src-7c762647e3744c83f1d08f58e199a0b0d29709dc.tar.gz chromium_src-7c762647e3744c83f1d08f58e199a0b0d29709dc.tar.bz2 |
ui: Explicitly prevent GL_TEXTURE_RECTANGLE_ARB from being used GLImageEGL.
This target is not supported according to OES_EGL_image spec.
BUG=
Review URL: https://codereview.chromium.org/83783006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236980 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | ui/gl/gl_image_egl.cc | 5 |
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; |