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

Unified Diff: src/gpu/gl/GrGLInterface.cpp

Issue 580863004: Adding 3D lut color filter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Added generationID for 3D texture key Created 6 years, 3 months 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
Index: src/gpu/gl/GrGLInterface.cpp
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp
index 063de56aeb5cae826775736fbdf80b50c30545b7..92213d353aa55606d5450b73f9cbcf38f0cb6fa3 100644
--- a/src/gpu/gl/GrGLInterface.cpp
+++ b/src/gpu/gl/GrGLInterface.cpp
@@ -264,6 +264,12 @@ bool GrGLInterface::validate() const {
RETURN_FALSE_INTERFACE
}
}
+ if (glVer >= GR_GL_VER(1,2)) {
+ if (NULL == fFunctions.fTexImage3D ||
+ NULL == fFunctions.fTexSubImage3D) {
+ RETURN_FALSE_INTERFACE
+ }
+ }
}
// optional function on desktop before 1.3

Powered by Google App Engine
This is Rietveld 408576698