diff options
author | 2012-01-05 16:17:38 +0000 | |
---|---|---|
committer | 2012-01-05 16:17:38 +0000 | |
commit | 280e99f1a61f2cf66a8ee9b9e6c517f3d2290de7 (patch) | |
tree | 8be860d10f17f54a1570ccfb6cf78ac5fec4da43 /src/gpu/android/GrGLCreateNativeInterface_android.cpp | |
parent | f58f9f62d751748cf1ac01bfd92a4a80fc449fab (diff) |
Add support for GL texture storage
Review URL: http://codereview.appspot.com/5462046/
git-svn-id: http://skia.googlecode.com/svn/trunk@2966 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/android/GrGLCreateNativeInterface_android.cpp')
-rw-r--r-- | src/gpu/android/GrGLCreateNativeInterface_android.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/android/GrGLCreateNativeInterface_android.cpp b/src/gpu/android/GrGLCreateNativeInterface_android.cpp index 5cfb51bbb3..5147627be9 100644 --- a/src/gpu/android/GrGLCreateNativeInterface_android.cpp +++ b/src/gpu/android/GrGLCreateNativeInterface_android.cpp @@ -77,6 +77,11 @@ const GrGLInterface* GrGLCreateNativeInterface() { interface->fTexImage2D = glTexImage2D; interface->fTexParameteri = glTexParameteri; interface->fTexSubImage2D = glTexSubImage2D; +#if GL_ARB_texture_storage + interface->fTexStorage2D = glTexStorage2D; +#elif GL_EXT_texture_storage + interface->fTexStorage2D = glTexStorage2DEXT; +#endif interface->fUniform1f = glUniform1f; interface->fUniform1i = glUniform1i; interface->fUniform1fv = glUniform1fv; |