From d47fafe05743d61958397bcf7a4b2bf66d778e1d Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Thu, 20 Oct 2011 21:09:45 +0000 Subject: Add test that validates GrGLInterfaces Review URL: http://codereview.appspot.com/5304048/ git-svn-id: http://skia.googlecode.com/svn/trunk@2510 2bbb7eff-a529-9590-31e7-b0007b416f81 --- tests/Test.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/Test.cpp') diff --git a/tests/Test.cpp b/tests/Test.cpp index d91eeedb8f..1c3b691261 100644 --- a/tests/Test.cpp +++ b/tests/Test.cpp @@ -89,6 +89,9 @@ GrContext* GpuTest::GetContext() { gGrContext.reset(GrContext::Create(kOpenGL_Shaders_GrEngine, ctx)); } } + if (gGLContext.get()) { + gGLContext.get()->makeCurrent(); + } return gGrContext.get(); } -- cgit v1.2.3