check for gl-canvas before calling GL
git-svn-id: http://skia.googlecode.com/svn/trunk@480 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
e83b532b2b
commit
1eadb955be
@ -202,9 +202,11 @@ protected:
|
||||
|
||||
virtual void onDraw(SkCanvas* canvas) {
|
||||
drawBG(canvas);
|
||||
|
||||
test_glshader(canvas);
|
||||
return;
|
||||
|
||||
if (canvas->getViewport(NULL)) {
|
||||
test_glshader(canvas);
|
||||
return;
|
||||
}
|
||||
|
||||
SkRect r;
|
||||
r.set(0, 0, 100, 100);
|
||||
|
Loading…
Reference in New Issue
Block a user