Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Unified Diff: ui/gl/gl_image_egl.cc

Issue 83783006: ui: Explicitly prevent GL_TEXTURE_RECTANGLE_ARB from being used GLImageEGL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698