aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrGLInterface.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-07-25 17:41:12 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-07-25 17:41:12 +0000
commitaab1fd921c9fd2f52f5a1db46d2cfd665500b164 (patch)
tree1ea6387309de35268a07d43a43f2be279731748a /gpu/src/GrGLInterface.cpp
parent4067d7d5cdbf6d052cf1519c79db82bad9e47b7e (diff)
Add sizeInBytes to GrResource, make GrRenderTarget aware of its pixel config
Review URL: http://codereview.appspot.com/4802058/ git-svn-id: http://skia.googlecode.com/svn/trunk@1951 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGLInterface.cpp')
-rw-r--r--gpu/src/GrGLInterface.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gpu/src/GrGLInterface.cpp b/gpu/src/GrGLInterface.cpp
index 2237474f97..68d058d80b 100644
--- a/gpu/src/GrGLInterface.cpp
+++ b/gpu/src/GrGLInterface.cpp
@@ -236,6 +236,8 @@ bool GrGLInterface::validate(GrEngine engine) const {
NULL == fDeleteRenderbuffers ||
NULL == fFramebufferRenderbuffer ||
NULL == fFramebufferTexture2D ||
+ NULL == fGetFramebufferAttachmentParameteriv ||
+ NULL == fGetRenderbufferParameteriv ||
NULL == fGenFramebuffers ||
NULL == fGenRenderbuffers ||
NULL == fRenderbufferStorage) {
@@ -310,9 +312,11 @@ bool GrGLInterface::validate(GrEngine engine) const {
// part of desktop GL
if (kDesktop_GrGLBinding == fBindingsExported &&
- NULL == fLineWidth) {
+ (NULL == fLineWidth ||
+ NULL == fGetTexLevelParameteriv)) {
return false;
}
+
// FBO MSAA
if (kDesktop_GrGLBinding == fBindingsExported) {
// GL 3.0 and the ARB extension have multisample + blit